|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<string.h>
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
|
#define SIZE 50
|
|
|
|
|
FILE *fp;//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
int n,m=0;//<2F><><EFBFBD><EFBFBD>ȫ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD>
|
|
|
|
|
struct student //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ȱ<EFBFBD><C8B1><EFBFBD><EFBFBD>Ϣ<EFBFBD>ṹ<EFBFBD><E1B9B9>
|
|
|
|
|
{
|
|
|
|
|
char name[100];
|
|
|
|
|
int number;
|
|
|
|
|
char course[20];
|
|
|
|
|
int di;
|
|
|
|
|
int time;
|
|
|
|
|
int chidao;
|
|
|
|
|
int zaotui;
|
|
|
|
|
int qingjia;
|
|
|
|
|
int kuangke;
|
|
|
|
|
}stu[SIZE];
|
|
|
|
|
struct kuangke//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>νṹ<CEBD><E1B9B9>1<EFBFBD><31>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
char name[20];
|
|
|
|
|
int number;
|
|
|
|
|
}kuangke[SIZE];
|
|
|
|
|
struct kuangke2//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>νṹ<CEBD><E1B9B9>2<EFBFBD><32><EFBFBD>γ<EFBFBD><CEB3><EFBFBD><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
char name[20];
|
|
|
|
|
int number;
|
|
|
|
|
}kuangke2[SIZE];
|
|
|
|
|
|
|
|
|
|
struct kuangke temp;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>1
|
|
|
|
|
struct kuangke2 temp2;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>2
|
|
|
|
|
void tongji1printf()//ͳ<>Ʒ<EFBFBD><C6B7><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
int i,j;
|
|
|
|
|
printf("ͳ<EFBFBD>ƺ<EFBFBD><EFBFBD>Ľ<EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD>\n");
|
|
|
|
|
for(i=0;i<=m;i++)
|
|
|
|
|
{
|
|
|
|
|
for(j=i+1;j<=m+1;j++)
|
|
|
|
|
{
|
|
|
|
|
if(kuangke[i].number<kuangke[j].number)
|
|
|
|
|
{
|
|
|
|
|
temp=kuangke[i];
|
|
|
|
|
kuangke[i]=kuangke[j];
|
|
|
|
|
kuangke[j]=temp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for(i=0;i<=m;i++)
|
|
|
|
|
printf("%s %d \n",kuangke[i].name,kuangke[i].number);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void tongji2printf()//ͳ<>Ʒ<EFBFBD><C6B7><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
int i,j,k;
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>γ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
scanf("%d",&k);
|
|
|
|
|
for(i=0;i<k;i++)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<>ſγ̵<CEB3><CCB5><EFBFBD><EFBFBD>ƣ<EFBFBD>\n",i+1);
|
|
|
|
|
scanf("%s",kuangke2[i].name);
|
|
|
|
|
}
|
|
|
|
|
for(j=0;j<k;j++)
|
|
|
|
|
{
|
|
|
|
|
for(i=0;i<=m;i++)
|
|
|
|
|
{
|
|
|
|
|
if(strcmp(kuangke2[j].name,kuangke[i].name)==0)
|
|
|
|
|
{
|
|
|
|
|
kuangke2[j].number=kuangke2[j].number+kuangke[i].number;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for(i=0;i<k;i++)
|
|
|
|
|
for(j=i+1;j<k+1;j++)
|
|
|
|
|
{
|
|
|
|
|
if(kuangke2[i].number<kuangke2[j].number)
|
|
|
|
|
{
|
|
|
|
|
temp2=kuangke2[i];
|
|
|
|
|
kuangke2[i]=kuangke2[j];
|
|
|
|
|
kuangke2[j]=temp2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
printf("ͳ<EFBFBD>ƺ<EFBFBD><EFBFBD>Ľ<EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
for(j=0;j<k;j++)
|
|
|
|
|
{
|
|
|
|
|
printf(" <20>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD>\n");
|
|
|
|
|
printf(" %s %d \n",kuangke2[j].name,kuangke2[j].number);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void save()//д<><D0B4><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
FILE *fp;
|
|
|
|
|
int j;
|
|
|
|
|
if((fp=fopen("study","wb"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
for(j=0;j<SIZE;j++)
|
|
|
|
|
{
|
|
|
|
|
if(fwrite(&stu[j],sizeof(struct student),1,fp)!=1)//д<><D0B4><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
printf("<EFBFBD>ļ<EFBFBD>д<EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
}
|
|
|
|
|
fclose(fp); //<2F>ر<EFBFBD><D8B1>ļ<EFBFBD>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void load()//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
FILE *fp;
|
|
|
|
|
int j;
|
|
|
|
|
if((fp=fopen("study","rb"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
for(j=0;feof(fp)==0;j++)
|
|
|
|
|
{
|
|
|
|
|
fread(&stu[j],sizeof(struct student),1,fp);//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
fclose(fp);
|
|
|
|
|
}
|
|
|
|
|
void tongji1()//ͳ<><CDB3>ij<EFBFBD><C4B3>ʱ<EFBFBD><CAB1><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>ɶൽ<C9B6><E0B5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
int time1,time2;
|
|
|
|
|
int i,flag=0,k;
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹʱ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
scanf("%d %d",&time1,&time2);
|
|
|
|
|
load();
|
|
|
|
|
for(i=0,k=0;i<SIZE;i++)
|
|
|
|
|
{
|
|
|
|
|
if(stu[i].time>=time1&&stu[i].time<=time2)
|
|
|
|
|
{
|
|
|
|
|
if(stu[i].kuangke>0)
|
|
|
|
|
{
|
|
|
|
|
strcpy(kuangke[k].name,stu[i].name);
|
|
|
|
|
kuangke[k].number=stu[i].kuangke;
|
|
|
|
|
m=k;//m<><6D>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD>
|
|
|
|
|
k++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
flag++;
|
|
|
|
|
}
|
|
|
|
|
if(flag==SIZE)
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
else
|
|
|
|
|
tongji1printf();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void tongji2()//ͳ<><CDB3>ij<EFBFBD><C4B3>ʱ<EFBFBD><CAB1><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD>εĿγ̼<CEB3><CCBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴Σ<CBB4><CEA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD><CBB4>ɶൽ<C9B6><E0B5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
int time1,time2;
|
|
|
|
|
int i,flag=0,k;
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹʱ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
scanf("%d %d",&time1,&time2);
|
|
|
|
|
load();
|
|
|
|
|
for(i=0,k=0;i<SIZE;i++)
|
|
|
|
|
{
|
|
|
|
|
if(stu[i].time>=time1&&stu[i].time<=time2)
|
|
|
|
|
{
|
|
|
|
|
if(stu[i].kuangke>0)
|
|
|
|
|
{
|
|
|
|
|
strcpy(kuangke[k].name,stu[i].course);
|
|
|
|
|
kuangke[k].number=stu[i].kuangke;
|
|
|
|
|
m=k;//m<><6D>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD>
|
|
|
|
|
k++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
flag++;
|
|
|
|
|
}
|
|
|
|
|
if(flag==SIZE)
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
else
|
|
|
|
|
tongji2printf();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void create()//¼<><C2BC>ѧ<EFBFBD><D1A7>ȱ<EFBFBD>μ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
void save();
|
|
|
|
|
int i,n;
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ʼ¼<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ȱ<EFBFBD>μ<EFBFBD>¼\n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
for(i=0;i<n;i++)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD><EFBFBD>Ϣ\n",i+1);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧ<><D1A7> <20>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> <20>ڼ<EFBFBD><DABC>ڿ<EFBFBD> ȱ<><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٵ<EFBFBD><D9B5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>˴<EFBFBD><CBB4><EFBFBD> <20><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD> <20><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD>\n");
|
|
|
|
|
scanf("%s %d %s %d %d %d %d %d %d",stu[i].name,&stu[i].number,stu[i].course,&stu[i].di,&stu[i].time,&stu[i].chidao,&stu[i].zaotui,&stu[i].qingjia,&stu[i].kuangke);
|
|
|
|
|
}
|
|
|
|
|
save();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void xiugai()//<2F>ĺ<DEB8><C4BA><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
void save();
|
|
|
|
|
void load();
|
|
|
|
|
int i,k,flag=0;
|
|
|
|
|
int number;
|
|
|
|
|
load();
|
|
|
|
|
printf("<EFBFBD>Է<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵIJ<EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>鷳\n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
scanf("%d",&number);
|
|
|
|
|
for(i=0;i<SIZE;i++)
|
|
|
|
|
{
|
|
|
|
|
if(number==stu[i].number)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧ<><D1A7> <20>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> <20>ڼ<EFBFBD><DABC>ڿ<EFBFBD> ȱ<><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٵ<EFBFBD><D9B5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>˴<EFBFBD><CBB4><EFBFBD> <20><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD> <20><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD>\n");
|
|
|
|
|
printf("%s %d %s %d %d %d %d %d %d\n",stu[i].name,stu[i].number,stu[i].course,stu[i].di,stu[i].time,stu[i].chidao,stu[i].zaotui,stu[i].qingjia,stu[i].kuangke);
|
|
|
|
|
do
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD>Ŀ\n");
|
|
|
|
|
printf("1.<2E>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> 2.<2E>ڼ<EFBFBD><DABC>ڿ<EFBFBD> 3.ȱ<><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 4.<2E>ٵ<EFBFBD><D9B5><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("5.<2E><><EFBFBD>˴<EFBFBD><CBB4><EFBFBD> 6.<2E><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD> 7.<2E><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> 8.<2E>˳<EFBFBD>\n");
|
|
|
|
|
scanf("%d",&k);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
|
|
|
|
|
switch(k)
|
|
|
|
|
{
|
|
|
|
|
case 1:scanf("%s",stu[i].course);break;
|
|
|
|
|
case 2:scanf("%d",&stu[i].di);break;
|
|
|
|
|
case 3:scanf("%d",&stu[i].time);break;
|
|
|
|
|
case 4:scanf("%d",&stu[i].chidao);break;
|
|
|
|
|
case 5:scanf("%d",&stu[i].zaotui);break;
|
|
|
|
|
case 6:scanf("%d",&stu[i].qingjia);break;
|
|
|
|
|
case 7:scanf("%d",&stu[i].kuangke);break;
|
|
|
|
|
case 8: break;
|
|
|
|
|
default:printf("<EFBFBD>ò˵<EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
|
|
|
|
|
}
|
|
|
|
|
}while(k!=8);
|
|
|
|
|
printf("%d<><64>ѧ<EFBFBD><D1A7><EFBFBD>ĺ<DEB8><C4BA><EFBFBD><EFBFBD><EFBFBD>ϢΪ<CFA2><CEAA>\n",number);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧ<><D1A7> <20>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> <20>ڼ<EFBFBD><DABC>ڿ<EFBFBD> ȱ<><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٵ<EFBFBD><D9B5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>˴<EFBFBD><CBB4><EFBFBD> <20><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD> <20><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD>\n");
|
|
|
|
|
printf("%s %d %s %d %d %d %d %d %d\n",stu[i].name,stu[i].number,stu[i].course,stu[i].di,stu[i].time,stu[i].chidao,stu[i].zaotui,stu[i].qingjia,stu[i].kuangke);
|
|
|
|
|
save();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void chaxun()//<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
void load();
|
|
|
|
|
int i,flag=0,number,item;
|
|
|
|
|
char name[20];
|
|
|
|
|
load();
|
|
|
|
|
do
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD>ʽ\n");
|
|
|
|
|
printf("1.ѧ<>Ų<EFBFBD>ѯ 2.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ 3.<2E>˳<EFBFBD>\n");
|
|
|
|
|
scanf("%d",&item);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(item==1)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ѧ<EFBFBD>ţ<EFBFBD>");
|
|
|
|
|
scanf("%d",&number);
|
|
|
|
|
for(i=0;i<SIZE;i++)
|
|
|
|
|
{
|
|
|
|
|
if(number==stu[i].number)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧ<><D1A7> <20>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> <20>ڼ<EFBFBD><DABC>ڿ<EFBFBD> ȱ<><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٵ<EFBFBD><D9B5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>˴<EFBFBD><CBB4><EFBFBD> <20><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD> <20><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD>\n");
|
|
|
|
|
printf("%s %d %s %d %d %d %d %d %d\n",stu[i].name,stu[i].number,stu[i].course,stu[i].di,stu[i].time,stu[i].chidao,stu[i].zaotui,stu[i].qingjia,stu[i].kuangke);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
flag++;
|
|
|
|
|
}
|
|
|
|
|
if(flag==SIZE)
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
}
|
|
|
|
|
else if(item==2)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
scanf("%s",name);
|
|
|
|
|
for(i=0;i<SIZE;i++)
|
|
|
|
|
{
|
|
|
|
|
if(strcmp(name,stu[i].name)==0)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧ<><D1A7> <20>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD> <20>ڼ<EFBFBD><DABC>ڿ<EFBFBD> ȱ<><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٵ<EFBFBD><D9B5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>˴<EFBFBD><CBB4><EFBFBD> <20><><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD> <20><><EFBFBD>δ<EFBFBD><CEB4><EFBFBD>\n");
|
|
|
|
|
printf("%s %d %s %d %d %d %d %d %d\n",stu[i].name,stu[i].number,stu[i].course,stu[i].di,stu[i].time,stu[i].chidao,stu[i].zaotui,stu[i].qingjia,stu[i].kuangke);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
flag++;
|
|
|
|
|
}
|
|
|
|
|
if(flag==SIZE)
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
else if(item==3)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD>IJ<EFBFBD>ѯ<EFBFBD><EFBFBD>ʽ\n");
|
|
|
|
|
}while(item!=3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
int x;
|
|
|
|
|
do
|
|
|
|
|
{
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("########################\n");
|
|
|
|
|
printf("# ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ #\n");
|
|
|
|
|
printf("# <20><>ӭ<EFBFBD><D3AD> #\n");
|
|
|
|
|
printf("########################\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("################################\n");
|
|
|
|
|
printf("#¼<><C2BC><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ո<EFBFBD>ʽ#\n");
|
|
|
|
|
printf("#<23><><EFBFBD>磺11<31><31>1<EFBFBD><31><EFBFBD><EFBFBD>1101<30><31>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD> #\n");
|
|
|
|
|
printf("#<23><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>蹦<EFBFBD>ܣ<EFBFBD><DCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD>֣<EFBFBD>#\n");
|
|
|
|
|
printf("# 1.¼<><C2BC>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ȱ<EFBFBD>μ<EFBFBD>¼ #\n");
|
|
|
|
|
printf("# 2.<2E><EFBFBD>ij<EFBFBD><C4B3>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ȱ<EFBFBD>μ<EFBFBD>¼ #\n");
|
|
|
|
|
printf("# 3.<2E><>ѯij<D1AF><C4B3>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD> #\n");
|
|
|
|
|
printf("# 4.<2E><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> #\n");
|
|
|
|
|
printf("# 5.<2E><>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD>ογ̼<CEB3><CCBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD> #\n");
|
|
|
|
|
printf("# 6.<2E>˳<EFBFBD>ϵͳ #\n");
|
|
|
|
|
scanf("%d",&x);
|
|
|
|
|
switch(x)
|
|
|
|
|
{
|
|
|
|
|
case 1:create();break;
|
|
|
|
|
case 2:xiugai();break;
|
|
|
|
|
case 3:chaxun();break;
|
|
|
|
|
case 4:tongji1();break;
|
|
|
|
|
case 5:tongji2();break;
|
|
|
|
|
case 6:break;
|
|
|
|
|
default:printf("***<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} while (x != 6);
|
|
|
|
|
}
|
|
|
|
|
|