View Single Post
cybermind
Senior Member
Join Date: Oct 2004
Old 03-01-2007 , 22:52   Re: C++ Gaben test [Done]
Reply With Quote #27

Quote:
Originally Posted by Lord_Destros View Post
Just to tell you, theres a compile error on line 235 .

health-15; doesn't really make sense.
That is not an error in C/C++. At most, you'll get a warning. Just having "0;" is not an error. It's essentially the same as calling a non-void function and not storing the return value.

Quote:
Originally Posted by Lord_Destros View Post
Also, you have an infinite loop (yes, I know you said it was never finished).
Works fine for me. When you first start, it asks you to start or quit. If you choose quit, it quits. If you choose start, it plays until you lose all your life, at which point it asks you if you want to play again or quit. If you choose quit, it quits. If you choose play again, it plays again.
cybermind is offline