| angel06 (2) | |||
Hello I'm currently creating a guessing game program where the user will be asked to guess the computer generated number. Once the program is finished, at the end the user will be asked if they want to play again. If the user types "Y or Y" the program will loop and when the user types "n or N" it will not loop. Check out my code below.
I can't loop this program please help me with it. Thanks in advance! | |||
|
|
|||
| SamuelAdams (319) | |
after your if statements, you need {} to indicate where they begin and end.void main() should be int main()you don't have return 0; at the end of main.your code is not formated, which I think would help you and me see the logic. EDIT your also missing using namespace std;
| |
|
Last edited on
|
|
| angel06 (2) | ||
|
I already changed void to int main. Sir what do you exactly mean with
how should I do that? Would you please show me? | ||
|
|
||
| Ikaros (14) | |||||
You should put
This is valid
But "Hio hoi" is independent on expression. I think that the first option is what you need. | |||||
|
|
|||||