|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include <stdio.h>
#include <stdlib.h>
main(){
char choice;
int loop=1;
do{
printf("--------管理系统--------\n");
printf("--------1显示--------\n");
printf("--------2输入--------\n");
printf("--------3输出--------\n");
printf("--------4退出--------\n");
printf("请输入:\n");
scanf("%c",&choice);
getchar();
system("cls");
int get_a_int() {
while( 1 != scanf("%d", &choice))
{
puts("That is not a number. Please input a number again...");
ClearBuffer();
}
return choice;
switch(choice){
case '1':printf("dsfasdf\n");
break;
case '2':printf("eryer\n");
break;
case '3':printf("dhsfdgdsfg\n");
break;
case '4':printf("2\n");
break;
}
}while(loop);
}
这个是错误的,请问怎么改啊(需要完成的是输入其他的提升输入错误) |
|