My different code

Hello guys. I’m new here. That’s my code right now and I’d like to know if I could leave it like this without the bool bPlayAgain = false … while (bPlayAgain).
I just put while (AskToPlayAgain); and it worked. Is that ok or will I have problems whit that in the future?

Sorry. Just Got It. If I do that it runs but it plays again even if i don’t type y or Y. In this case it would always be in the loop.

Privacy & Terms