Quote:
Originally Posted by Lord_Destros
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
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.