repeat and choices

Can anyone help me with making my code repeat again after the user is done with the first game? Also how to give the user the choice to play or end game. I know im asking a lot but i really need to get this done, this is what i have so far please help.
Last edited on
Make a big do-while around the part you want to do again

Then at the end you ask the User if he wants to play again. (y/n)
You save the answer in a char answer; for example
Now the while condition looks like this: while(answer == 'y');

done!
Last edited on
oh ok, thanks Glandy ill try it out
Last edited on
I still cant get it to work i don't know what i'm doing wrong
Topic archived. No new replies allowed.