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.
|
|
|
|
#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 <20>˵<EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 1.<2E><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 2.<2E><><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 3.<2E><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 4.ɾ<><C9BE>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 5.<2E><><EFBFBD>༶<EFBFBD><E0BCB6><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 6.<2E><>ѧ<EFBFBD>Ų<EFBFBD><C5B2><EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t 7.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t\t\t\t\t <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
|
|
|
|
|
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;
|
|
|
|
|
}
|