General C++ Programming (Page 6)

Help me understand this logic
I always have trouble with logic, even when it's simple. Here is a function designed to search an ar...
[1 reply] : My problem in understanding is with the bool variable and the logical... (by cire)
Singleton class
Can anyone explain about singleton class and when and where it should be used. Advantages and disadv...
[1 reply] : (by Yanson)
Virtual methods create problems, not compiling
Hello guys,i made a program which manages graphs and works fine for now. I'm extending the class "L...
[1 reply] : I KNOW IT'S SO BORING to read full code and trying to compile it but ... (by cire)
Programming Project Help
< sorry >
[6 replies] Last: Thanks for the help and advice everyone. Will delete original post in... (by StrikingSparrow)
Store numbers from a char array into single variable
Hey guys, was wondering if any one had a few moments to show me how to store some nummbers from a ch...
[1 reply] : cout << "Enter FIRST number's length: "; cin >> length; Wh... (by integralfx)
Reading Integers From A File
I'm having trouble getting integers from a file. If there is no space at the end of a file it works ...
[1 reply] : if (!(file >> fileArray )) //error reading or converting input ... (by helios)
Help with code
I am 90% done with the code I just can't seem to get the coding right for the output. The code needs...
[1 reply] : put the print statement in here for (double i = 1; i<years + 1; ++i) ... (by jonnin)
Need help with outputting and deleting elements in an array for a War card game
Hi I was wondering if anyone could help me out with this problem I'm having with my program in terms...
[no replies]
by tit0n
Trying to computer the closest pair
we are given double d = p .distance(p ); Im not sure how to make out this code. Can anyone explai...
[1 reply] : Do not doublepost. The other thread: (by keskiverto)
Floating Point Exception Error
Hi I am having difficulty running my program it keeps giving me a floating point exception error. Ca...
[1 reply] : The % modulus operator expects integer values, but in several cases th... (by wildblue)
C++ solution checking
Hi everyone! I need a help to have 2 and more solution for 3 problem. It would be wonderful if some...
[no replies]
by elsa
How to overload operators in existing code
Hello! I need to re-write this program to overload the following operators: ">>, <<, +, -, *, ==, !...
[6 replies] Last: > I'm using (VS 2010) Upgrade to a more current version of the compi... (by JLBorges)
I am having trouble even understanding what I am supposed to be doing. Most the time I just copy cod...
[1 reply] : Most the time I just copy code in class and then rework it Unfortuna... (by dhayden)
Question on my c++ project (loop)
I am almost done with my project, but this one minor thing is keep bothering me. I have to find the...
[2 replies] Last: rewardTotal = reward + rewardTotal; looks correct for the grand total.... (by jonnin)
Filling a 2D array
So my question is how does one fill a 2D array full of numbers. Not random numbers. In my particular...
[6 replies] Last: make a function that checks it using a for loop.. (not sure if this is... (by Flaze07)
Assignment Operator
Hello !! I'm coding an ADT for set. template <typename elem> class Set { public: Se...
[3 replies] Last: oh, and union is a keyword. this might cause issues. (by jonnin)
Set (ADT)
Hello ! I'm coding the ADT for sets. I'm using a vector of strings as the main structure but i have ...
[1 reply] : Details of std::set-union here: (by gunnerfunner)
Network several connections TCP server
Hello guys! When i connect with my client it works great and in the console for the server it pop...
[1 reply] : You should try posting to the SFML forums. (by JayhawkZombie)
trouble with a C++ PROJECT
I really don't know how to implement this Spin the wheel function, it's supposed to send a player ba...
[4 replies] Last: @Jonnin thanks that seems to have solved it (by nostalgiaultra)
Can't add a value to a value in eigen
I'm trying to get this to work: Board(row, col) += (1.0f / 6.0f); Board(row,col) is 0.17 and ...
[1 reply] : what is board? if an array or type, perhaps you meant board or some... (by jonnin)
Pages: 1... 45678... 25
  Archived months: [dec2016]

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