#include<iostream>
using namespace std;
void showmenu();
void report();
void comfort();
int main()
{
showmenu();
int choice;
cin>>choice;
while(choice!=5)
{
switch(choice)
{
case 1:cout<<"\a\n"; break;
case 2: report(); break;
case 3: comfort(); break;
default:cout<<"That's not a chioce.\n";
}
showmenu();
cin>>choice;
}
cout<<"Bye!";
return 0;
}
switch语句用于显示菜单
最新推荐文章于 2023-10-25 21:23:12 发布