General C++ Programming (Page 4)

New! Join the C++ community on Google+
SDL Mob Class
 
How would I make Mobs from this code? I know I can use vectors but how would that make every single ...
[9 replies] Last: Thanks, I'll test out the concept later when I get home from school. (by Fredbill30)
by capet
A function to accumulate total correct
 
I might have confused myself trying to figure out to bring this program together. I made quite a few...
[no replies]
reading from a file using a function
 
Hello everyone! I have a school project Im having issues with, well just one part rather. Here is m...
[2 replies] Last: info is not an array, so you should stop treating it like it is one. ... (by cire)
by Ayoob
how to put hex value in md5 hash instead of decimal value?
 
hi all: how to put hex value in md5 hash instead of string value?
[11 replies] Last: thank you for your help (by Ayoob)
Logical help needed for if condition
 
I have 3 varibles holding values Day Of Week(enum of week), Hour(0 to 23) and Minute(0 to 23), Thes...
[1 reply] : sorry i'm lost, put some code in front of me to figure out what your s... (by SamuelAdams)
writting to C:\
 
I have a problem with missing rights. I just can't create files on C:\. Folders somehow are no probl...
[10 replies] Last: you didn't give us enough info to know if it is or not. (by SamuelAdams)
Sum of row of 2D array
 
To find the sum of row of a 2D array ( 4 X 4 matrix)i've inserted the formula in function count and ...
[2 replies] Last: Every time your outer loop begins another pass, you reset rowTotal t... (by MikeyBoy)
Converting Decimal number into binary array
 
I'm working on a Genetic Algorithmic program and now I'm trying to convert decimal number into binar...
[5 replies] Last: But there is a limit, so you could simply ignore the `0' bits at the ... (by ne555)
reference polymorphism
 
#include<iostream> using namespace std; class Base{ public: int i=0; Base(int i) {this->i=i;...
[3 replies] Last: Yes that's right. It will only copy the Base::i in this case. (by Peter87)
Outputting data from txt file using getline!
 
Hi, I have a txt file with 12 rows and 7 columns. I am asking the user to input a value between 1...
[no replies]
by aj3423
overwrite some bytes using ofstream
 
Hi, I want to overwrite some bytes of a file, for example ofstream ofs("aa.txt", ios::binary)...
[1 reply] : Have a look at the flags. I expect you'll need to use an append flag.... (by kbw)
Need Guidance: Want to Make an IRC Client
 
Sorry if this is the wrong forum to post this in. I'm bored and decided to do something I had bee...
[2 replies] Last: Thanks, gives me an idea of what to Google for now to find the most up... (by BHXSpecter)
Perfecting my linked list (1,2,3,4,5)
 
This is continued from this post: http://cplusplus.com/forum/beginner/76498/ My complete code is ...
[85 replies] Last: That's impressive that you're just a hobbyist and know so much. Are th... (by Volatile Pulse)
Catching exceptions thrown from constructor of a global instance of a class
 
I know that having global variables is not appreciated. But in the book, The C++ programming languag...
[no replies]
Simulation program queuesystem
 
Hi! Im having problem with My code where i can't enter the last if. This simulates a queuesystem. ...
[no replies]
Base class ctor
 
If i have 3 classes to inherit as follows a:b:c And the following line included in main function...
[2 replies] Last: Posting a minimal, compilable code snippet that illustrates the proble... (by cire)
there's an error
 
what will i do if there is an error like this? In function `int main()': jump to case label ...
[5 replies] Last: while(choices!='D' || 'd'); This is not equivalent to choices != ... (by cire)
Do you know this error?
 
Psh I have been working on this for days doing research and everything possible. I have now given in...
[4 replies] Last: I have now given in to asking for help lol. Anyone have a suggestion ... (by cire)
array in c++ to get specific value
 
I would like to set an array to get the value. How can write the codes. Temperature pressure H...
[2 replies] Last: im new in c++. trying to learn. Any feedback? (by kent ying ooi)
anybody help please?
 
Your CONSOLE program must accept positive integer numbers as elements for two different SETS. Give...
[4 replies] Last: you can put ... (by dovip)
Pages: 123456... 76
  Archived months: [oct2012]

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