#include <iostream>
using namespace std;
int main()
{ char c;
while(true){
cout <<"MAIN NENU: "<<endl;
cout<<"l:left,r:right,q:quit->";
cin>>c;
if(c=='q') break;
if(c=='l'){
cout<<"LEFT MENU:"<<endl;
cout<<"select a or b:";
cin>>c;
if(c=='a'){
cout<<"you choose 'a'"<<endl;
continue;}
if(c=='b'){
cout<<"you choose 'b'"<<endl;
continue;
}
}
if(c=='r'){
cout<<"RIGHT MENU:"<<endl;
cout<<"select c or d:";
cin>>c;
if(c=='c'){
cout<<"you choose 'c'"<<endl;
continue;
}
if(c=='d'){
cout<<"you choose 'd'"<<endl;
continue;
}
else{
cout<<"you didn't choose c or d!"
<<endl;
continue;
}
}
cout<<"you must type 1 or r or q!"<<endl;
}
cout<<"quitting menu..."<<endl;
}
07-31
07-31
07-31