Im trying to make a menu but i keep getting one problem that im not sure how to fix.
My code is something like this.
Now the problem is that if i pick 2 then if i let it reset select to 0 and pick another number like 1 it thenjust shuts off because i think its reading it form top down so once it goes to 2 it cant move back up to one. How would i go around this?Code:cout<<"1=blabla"<<endl; cout<<"2=blabla"<<endl; cout<<"Choose a number"<<endl; cin<<select; if(select==1){ blablabla } if(select==2){ bla blabla }



LinkBack URL
About LinkBacks


