You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
447 B
27 lines
447 B
//主菜单函数
|
|
//void cd()
|
|
#include <stdio.h>
|
|
int main()
|
|
{
|
|
int x;
|
|
printf("1.录入\n");
|
|
printf("2.查询\n");
|
|
printf("3.搜索\n");
|
|
printf("4.修改\n");
|
|
printf("5.删除\n");
|
|
printf("请选择;");
|
|
scanf("%d",&x);
|
|
switch(x)
|
|
{
|
|
case 1: printf("录入");break;
|
|
case 2: printf("查询");break;
|
|
case 3: printf("搜索");break;
|
|
case 4: printf("修改");break;
|
|
case 5: printf("删除");break;
|
|
default:printf("请输入正确数值");break;
|
|
|
|
}
|
|
return 0;
|
|
}
|
|
|