#include<iostream>
using namespace std;
int main(){
char c,d;
cin>>c;
switch (c){
case 'l':{
cout<<"You choose Left:"<<endl;
cin>>d;
switch(d){
case 'd':cout <<"You choose d!!!"<<endl; break;
case 'e':cout<<"You have choose e!!!"<<endl;break;
default: cout<<"You have type wrong answer!!!";
}
break;}
case 'r': cout<<"You choose Right:"<<endl;break;
default : cout<<"Wrong !!!"<<endl;
}
}
3.4修改menu.cpp
最新推荐文章于 2024-06-27 13:56:52 发布