first commit

master
彭正财 6 years ago
commit 5bb59a7444

@ -0,0 +1,82 @@
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define m 1
struct student
{
int id;
int class;
char name[10];
int time_beginhour;
int time_beginminute;
int time_endhour;
int time_endminute;
}student[200];
void select();
void count();
void add();
void reduce();
void classfind();
void idfind();
void namefind();
int main()
{
int n;
system("color B4");
printf("\n\n\n\t\t\t\t\t\t 菜单\n");
printf("\t\t\t\t\t\t 1.输入学生信息\n");
printf("\t\t\t\t\t\t 2.计算\n");
printf("\t\t\t\t\t\t 3.增加学生档案\n");
printf("\t\t\t\t\t\t 4.删除学生档案\n");
printf("\t\t\t\t\t\t 5.按班级查找\n");
printf("\t\t\t\t\t\t 6.按学号查找\n");
printf("\t\t\t\t\t\t 7.按姓名查找\n");
printf("\t\t\t\t\t\t 请选择功能:");
scanf("%d",&n);
switch(n)
{
case 1:
{
system("cls");
select();
break;
}
case 2:
{
system("cls");
count();
break;
}
case 3:
{
system("cls");
add();
break;
}
case 4:
{
system("cls");
reduce();
break;
}
case 5:
{
system("cls");
classfind();
break;
}
case 6:
{
system("cls");
idfind();
break;
}
case 7:
{
system("cls");
namefind();
break;
}
}
return 0;
}
Loading…
Cancel
Save