回复 13楼 ly371031846
我刚刚翻书了 想了想错误对着书上的格式来了一遍就对了。
#include <stdio.h>
void main()
{
int i;
printf("\t\t--------------------------------------\n");
printf("\t
the menu of the data management\n");
printf("\t
1. input data\n");
printf("\t
2. otput data\n");
printf("\t
3. insert data\n");
printf("\t
4. delete data\n");
printf("\t
0. quit system\n");
printf("\t\t--------------------------------------\n");
printf("\t
please enter you choice:\n");
scanf("%d", &i);
switch(i)
{
case 1: printf("input data\n");break;
case 2: printf("output data\n");break;
case 3: printf("insert data\n");break;
case 4: printf("Delete data\n");break;
case 0: printf("quit system\n");break;
default :printf("input error\n");
}
}