ok so why doesn't this work. i mean i can go into the different sections but when i'm back at main i can't go into, lets say new game again. ok. i know i'm a super noob but i'm eager to learn. thx a bunch.
Code:#include <iostream> using namespace std; int main() { int x; while (x!=3) { cout<<"**MAIN MENU**\n\n"; cout<<"1.New game\n2.Options\n3.Exit\n"; cout<<"Choice:"; cin>>x; cout<<"\n"; /*NEW GAME*/ if (x==1) { int y; while (y!=2) { cout<<"*New game*\n\n"; cout<<"1.Map\n2.Back\n"; cout<<"Choice:"; cin>>y; cout<<"\n";} } /*OPTIONS*/ if (x==2) { int z; while (z!=2) { cout<<"*Options*\n\n"; cout<<"1.Difficulty\n2.Back\n"; cout<<"Choice:"; cin>>z; cout<<"\n";} } } }