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.

92 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#include "z.c"
#include "j1.c"
#include "z1.c"
void save();
void insert();
void end_money();
void delete_student();
void select_xuehao();
void select_name();
void select_banji();
void show();
int main() {
//int menu();
int i;
for(;;)
{
printf("\t\t*******************菜单**************\n");
printf("\t\t\n");
printf("\t\t\n");
printf("\t\t***************机房收费管理系统*******\n");
printf("\t\t\n");
printf("\t\t\n");
printf("\t\t1.###############输入学生信息:########\n");
printf("\t\t2.#################上机费用:##########\n");
printf("\t\t3.################删除档案:###########\n");
printf("\t\t4.################按学号查询:#########\n");
printf("\t\t5.################按班级查询:#########\n");
printf("\t\t6.################按姓名查询:#########\n");
printf("\t\t7.################显示学生信息:#######\n");
printf("\t\t8.##################退出系统:#########\n");
printf("\n\n\n\n请在1-8之间选择功能:");
scanf("%d",&i);
switch(i)
{
case 1:
{
system("cls");
insert();
}
break;
case 2:
{
system("cls");
end_money();
}
break;
case 3:
{
system("cls");
delete_student();
}
break;
case 4:
{
system("cls");
select_xuehao();
}
break;
case 5:
{
system("cls");
select_banji();
}
break;
case 6:
{
system("cls");
select_name();
}
break;
case 7:
{
system("cls");
show();
} break;
case 8:
{
exit(0);
}
break;
}
}
printf("\n"); system("pause");
save();
return 0;
}