#include<iostream>
using namespace std;
int main()
{
 char a=100;
 cout<<"Menu:A(dd) D(elete) S(ort) Q(uit) ,Select one: "<<endl;
 cin>>a;
 if(a!=81)
 {
  
  switch(a)
  {
   case 65:
    cout<<"数据已经增加"<<endl;
    break;
   case 68:
    cout<<"删除"<<endl;
    break;
   case 83:
    cout<<"排序"<<endl;
    break;
   default :
    cout<<"wrong number"<<endl;
    break;
  }
 
 }
 else
 cout<<"quit"<<endl;
 return 0;
}

posted on 2018-03-21 20:07  卡斯兰娜樱  阅读(62)  评论(0编辑  收藏  举报