General C++ Programming (Page 4)

by bonho
smart pointers
I am writing a program with two parts. (A) sends an object to (B) which stores it, and once sent, (...
[4 replies] Last: Something along these lines, perhaps: Using unique pointer: #include... (by JLBorges)
I don't understand this error feedback
I am working with two classes each in their own .h file (although I think I only need to show one on...
[1 reply] : 1. Please edit your post to put [co de] tags around your code. > ma... (by salem c)
Constructor with two parameters
I have the following class and I don't know how to initialize it my constructor with the private var...
[1 reply] : template < typename U, size_t N > class Bar { public: //... (by JLBorges)
by Pop007
error: 'biblio::Reference::Reference' names the constructor, not the type
Hi, I made a class that contain a pur virtual method wich I will implement it in the derivatives cla...
[2 replies] Last: I have find out...all I have do is a Reference* Reference::clone() con... (by Pop007)
[Boost].DI template injection does not work as expected
Hi, The following code does not compile. It was obtained from https://boost-experimental.github.i...
[12 replies] Last: Downloading a header file to one's computer won't help, though. It ... (by mbozzi)
Help with stripped diamond
Hi I need to print a diamond with 2 symbols so that the two symbols loos like stripes, however I am ...
[4 replies] Last: #include <iostream> #include <string> #include <algorithm> using name... (by lastchance)
Android Studio c++ cocos2d-x error "Java: Invalide source release: 11"
Cocos forums down for some reason, It is my first time making a cocos android app, I linked up the e...
[1 reply] : This has nothing to do with C++, it has to do with the emulator so I d... (by Grime)
why in this possible??
#include <stdio.h> int main() { int num1,a=1,b; printf("%d %d %d ",a++,a++,a++);pr...
[3 replies] Last: [quote=tlgh1113]i think the out put should be 1 2 3 4 5. Why? What ma... (by Cubbi)
Debugger's not working
I have a code that I want to debug but all debug features are grey for me. Setting breakpoints won't...
[1 reply] : I don't know codeblocks but this sort of thing can be caused by not co... (by jonnin)
by adam77
Cross-platform CMAKE project for old VESA/SVGA DOS Graphics
Hello everyone, I've a lot of old code that I used to do in my school days. Those code maily used...
[2 replies] Last: And for display I just need a bitblt support. I would suggest that yo... (by coder777)
by Guil
Random global variable
Hi, I would like to create a global variable (outside main()) with an random value inside it. Any...
[16 replies] Last: Thank you for the links, alas the first one -- oops, just tried agai... (by MikeStgt)
Need to build cross platform app(need help of all PC and mobile dev’s)
Hello guys I’ve been reading a lot of articles and questions in this website since I started progr...
[2 replies] Last: Felgo is also a good place to start. What you want to do is more than... (by Duthomhas)
float numbered list? C++
I am trying to make a sales calcualtor but the part i am stuck on at the moment is that I am trying ...
[1 reply] : Yes, you will have to declare what all the states are. The program wil... (by fiji885)
by vibhu
virtual class inheritance
hi Can anybody please explain how the answer is 223 of the below problem #include <iostream> u...
[4 replies] Last: @Repeater thanks for the reply.. (by vibhu)
by asy04
Convert to user input
return 0; }
[4 replies] Last: OP's original post. How can I convert this to user input? #include... (by salem c)
by asy04
Convert into a loop
cout << ave1 << endl; cout << ave2 << endl; return 0; }
[2 replies] Last: OP's original post for reference. #include<iostream> using namespa... (by salem c)
If, Else infinite loop help, C++
I am trying to make a C++ sales calculator and for my if, else statement I have my "Purchase" as == ...
[1 reply] : Check out the answer in this thread - (by TarikNeaj)
Getting "instantiated from here" error while working with templates and classes
I'm in a class learning C++ and our latest project includes using templates in conjunction with clas...
[2 replies] Last: «instantiated from here» is not an error message your errors are: - ... (by ne555)
How to check which argument was picked from a given prompt ?
template <class choice> choice GetChoice(string leftStr, string rightStr, choice a , choice b) { ...
[2 replies] Last: #include <iostream> #include <limits> template <class choice> choic... (by Grey Wolf)
Strings Program with full names
I am having trouble getting the last two statements to execute that should print the full name in th...
[5 replies] Last: Thank you so much!! I had completely forgotten about substr. It works ... (by kmheflin712)
Pages: 123456... 15
  Archived months: [feb2019]

Cannot post in this page. To post a new message, go to the first page.