输出和格式都有错误,请问怎么办,试了几次都不知道怎么做,没办法了,请指点指点我
供参考:
#include<stdio.h>
int main()
{
char sel=' ';
while(sel != 'Q')
{
printf("Menu: A(dd) D(elete) S(ort) Q(uit),Select one:");
scanf("%c",&sel);
getchar();
switch(sel){
case 'A':
printf("数据已经增加.\n");
break;
case 'D':
printf("数据已经删除.\n");
break;
case 'S':
printf("数据已经排序.\n");
break;
case 'Q':break;
}
}
return 0;
}