#include "function.h"
int main()
{
struct student *head=NULL;
denglu();
while(1)
{int c=0;
system("cls");
printf("===============================学生信息管理系统=================================\n");
printf("********************************************************************************\n");
printf("* Hs编译 学号0000000000 姓名:XXXX 专业:软件工程 班级:2班 *\n");
printf("********************************************************************************\n");
printf("================================================================================");
c=menu();
printf("\a");
switch(c)
{
case 1:
head=creat();break;
case 2:
head=add(head);break;
case 3:
skim(head);break;
case 4:
head=modify(head);break;
case 5:
search(head);break;
case 6:
head=del(head);break;
case 7:
head=read();break;
case 8:
save(head);break;
case 0:
printf("\n\a\a谢谢您的使用!Hs将会努力制作出让您满意的程序!\n\n");
system("color 04"); //程序结尾的dos变色命令,在windows.h中
Sleep(600); //延迟600毫秒
system("color 06");
Sleep(600);
system("color 02");
Sleep(600);
system("color 01");
Sleep(600);
system("color 05");
Sleep(600);
system("color 03");
Sleep(600);
system("color 07");
system("pause");
exit(0); //退出系统
default:
printf("\n号码输入有误,请重新输入。\n\n");
getch();
}
}
return 0;
}
- 1
- 2
前往页