C++ Gaben test [Done]
2 Attachment(s)
Thank's for the help guys ;)
The .zip files are all up-to-date (The source code also) ;) Thanks to:
(I would appreciate it if someone could explain to me the loop Zenth77 was talking about. I'm fairly new to C++ so be nice.) ;) |
Re: C++ help
well it's working correctly, it's just that the console shutdowns whenever the program ends.
I forgot what you have to add at the end of the function to make it ask you to press a key to continue, but I think it is getchar(); |
Re: C++ help
if(killedByGaben)
cout << "\As you \A ?? ;) Without this it works for me. Ciao Ephraim |
Re: C++ help
Ahh I forgot the "\n"
But now if you press 0 it exits.. Which its not suppose to do.. Its suppose to display: Code:
You take the shining Pickles, Code:
Congratualations, you |
Re: C++ help
You need to do a while loop, something like:
Code:
bool quit; |
Re: C++ help
Yeah, Well i got most of it done (thanks Xanimos :p) But im still having trouble with one part. All the ones work besides the first test when you press 1 in the first test.... It exits the program.. But if you hit 0 then 1 it works on the second & third test.. Here my new code:
Code:
//*Britt Jamerson - Gaben, Take or go test! - v1.0* |
Re: C++ help
you gotta return 0 back to the calling program so it knows to end.
Code:
//*Britt Jamerson - Gaben, Take or go test! - v1.0* |
Re: C++ help
You probably have a logic error (I'm to lazy to look for it right now). But you still need to do the while loop thing.
Quote:
|
Re: C++ help
talking to dude.
That doesnt solve the problem i have. Still choosing ''1'' in the first test exits program.. :( |
Re: C++ help
Quote:
|
| All times are GMT -4. The time now is 00:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.