|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
char ch1 = 'A';
char ch2 = 'D';
char ch3 = 'S';
char ch4 = 'Q';
char ch5 ;
cout << "Menu: A(dd) D(elete) S(ort) Q(uit), Select one: ";
cin >> ch5;
switch(ch5)
{
case 'A' : cout<<"数据已经增加"<<endl;
}
cout << "Menu: A(dd) D(elete) S(ort) Q(uit), Select one: ";
cin >> ch5;
switch(ch5)
{
case 'D' : cout<<"数据已经删除"<<endl;
}
cout << "Menu: A(dd) D(elete) S(ort) Q(uit), Select one: ";
cin >> ch5;
switch(ch5)
{
case 'S' : cout<<"数据已经排序"<<endl;
}
cout << "Menu: A(dd) D(elete) S(ort) Q(uit), Select one: ";
cin >> ch5;
switch(ch5)
{
case 'Q' : cout<<endl; break;
}
return 0;
} |
|