master
2414352760@qq.com 6 years ago
parent 0ae91201d2
commit 0dc41dd4b4

@ -1,91 +0,0 @@
#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;
}

19
z1.c

@ -0,0 +1,19 @@
void insert() {
printf("请输入学号:");
scanf("%ld",&student[i].xuehao);
printf("请输入姓名:");
scanf("%s",student[i].name);
printf("请输入班级:");
scanf("%s",student[i].banji);
printf("请输入上机时间:");
scanf("%d:%d",&student[i].begin.hour,&student[i].begin.minute);
i = i + 1;
printf("人数:%d",i);
j=i;
save();
printf("\n"); system("pause");
system("cls");
}
Loading…
Cancel
Save