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.

824 lines
20 KiB

6 years ago
/*<2A>γ<EFBFBD><CEB3><EFBFBD><EFBFBD><EFBFBD>˼·<CBBC><C2B7>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>Ա<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧУ <EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD>е<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Σ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD>л<EFBFBD><EFBFBD>õķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ܷ<EFBFBD><EFBFBD><EFBFBD>
ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>
ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧУ<EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ѧУ<EFBFBD>ܷ<EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>
ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>η<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>a<EFBFBD>ֻ<EFBFBD><EFBFBD><EFBFBD>b<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>max=50<EFBFBD><EFBFBD>ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μӵ<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>max=5<EFBFBD><EFBFBD>
ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>max=10<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>max=15<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>֮ǰӦ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD>μӱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μӼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>
<EFBFBD>ʹ<EFBFBD><EFBFBD>ж<EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD>μӱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD>ʹ<EFBFBD><EFBFBD>ж<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>
<EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>
Ѱ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>
Ѱ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>
Ѱ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>
ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
6 years ago
#include<process.h>
#include<conio.h>
FILE *fp; //<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8>
6 years ago
struct xmform1{
char name[20];
char mc1[10];
char mc2[10];
char mc3[10];
char mc4[10];
char mc5[10];
};
struct xmform2{
char name[20];
char mc1[10];
char mc2[10];
char mc3[10];
};
struct schoolform{
char name[20];
char id[10];
int number;
6 years ago
int scoer=0;
6 years ago
};
struct studentform{
char name[20];
char xb[10];
char number[10];
int age;
char name1[20]; //name1<65><31>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<D1A7><D0A3>
struct {
char name[20];
char mc[50]="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
int scoer=0;
} xm;
int allscoer;
};
int ggy(struct studentform student[]){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μӱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ָ<EFBFBD><EFBFBD><EFBFBD>\n");
int n;
scanf("%d",&n);
getchar();
int i;
for(i=0;i<n;i++){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64>ѡ<EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n",i+1);
gets(student[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֵ<EFBFBD><EFBFBD>Ա<EFBFBD>:\n");
gets(student[i].xb);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֵı<EFBFBD><EFBFBD><EFBFBD>:\n");
gets(student[i].number);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
scanf("%d",&student[i].age);
getchar();
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֵ<EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>\n");
gets(student[i].name1);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μӵ<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>\n");
gets(student[i].xm.name);
printf("<EFBFBD><EFBFBD>ǰһ<EFBFBD><EFBFBD>¼%d<><64>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n",i+1);
}
6 years ago
printf("<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("********************\n");
printf("<EFBFBD>Ƿ<EFBFBD><EFBFBD>Ե<EFBFBD>ǰ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>д浵,<2C><>'y'<27><>ʾ<EFBFBD><CABE>\n");
char next;
next=getch();
if(next=='y'){
//printf("<22><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>\n");
//if((fp=fopen("studentform","rb+"))==NULL){
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>\n");
if((fp=fopen("studentform","wb+"))==NULL){
printf("<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>ɹ<EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>\n");
}
//}else{
//printf("<22>ļ<EFBFBD><C4BC>Ѵ򿪣<D1B4><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><E6B4A2>Ϣ\n");
//}
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
for(i=0;i<n;i++){
fprintf(fp,"%10s%5s%10s%5d%10s%10s",student[i].name,student[i].xb,student[i].number,student[i].age,student[i].name1,student[i].xm.name);
}
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ<EFBFBD>\n");
if((fp=fopen("studentrs","wb+"))==NULL){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ״<EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>ɹ<EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ״<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>\n");
}
fprintf(fp,"%5d",n);
fclose(fp);
6 years ago
printf("********************\n");
return n;
6 years ago
}}
6 years ago
int ggy1(struct schoolform school[]){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μӱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
int n;
scanf("%d",&n);
getchar();
int i;
for(i=0;i<n;i++){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64>ѧУ<D1A7><D0A3><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>\n",i+1);
gets(school[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>\n");
gets(school[i].id);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
scanf("%d",&school[i].number);
getchar();
printf("<EFBFBD><EFBFBD>ǰһ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>%dѧУ<D1A7><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n",i+1);
}
6 years ago
printf("<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
6 years ago
printf("********************\n");
6 years ago
printf("<EFBFBD>Ƿ<EFBFBD><EFBFBD>Ե<EFBFBD>ǰ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>д浵,<2C><>'y'<27><>ʾ<EFBFBD><CABE>\n");
char next;
next=getch();
if(next=='y'){
//printf("<22><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>\n");
//if((fp=fopen("schoolform","rb+"))==NULL){
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>\n");
if((fp=fopen("schoolform","wb+"))==NULL){
printf("<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>ɹ<EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>\n");
}
//}else{
//printf("<22>ļ<EFBFBD><C4BC>Ѵ򿪣<D1B4><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><E6B4A2>Ϣ\n");
//}
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
for(i=0;i<n;i++){
fprintf(fp,"%10s%10s%3d",school[i].name,school[i].id,school[i].number);
}
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
fclose(fp);
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ<EFBFBD>\n");
if((fp=fopen("schoolgs","wb+"))==NULL){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ״<EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>ɹ<EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ״<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>\n");
}
fprintf(fp,"%5d",n);
fclose(fp);
printf("********************\n");
}
return n;
}
6 years ago
int ggy2(struct xmform1 xm1[],struct studentform student[],struct schoolform school[],int schoolgs,int studentrs){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD>ĸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
int n;
scanf("%d",&n);
getchar();
int i,i1,i2;
int a1,a2;
for(i=0;i<n;i++){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD>\n",i+1);
gets(xm1[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD> <20>ڶ<EFBFBD><DAB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><D7A2><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>ְ<EFBFBD>һ<EFBFBD>λسǣ<D8B3>");
gets(xm1[i].mc1);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm1[i].mc1,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>");
student[i1].xm.scoer+=7;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=7;
break;
}
}
break;
}
}
gets(xm1[i].mc2);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm1[i].mc2,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD>");
student[i1].xm.scoer+=5;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=5;
break;
}
}
break;
}
}
gets(xm1[i].mc3);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm1[i].mc3,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
student[i1].xm.scoer+=3;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=3;
break;
}
}
break;
}
}
gets(xm1[i].mc4);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm1[i].mc4,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
student[i1].xm.scoer+=2;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=2;
break;
}
}
break;
}
}
gets(xm1[i].mc5);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm1[i].mc5,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
student[i1].xm.scoer+=1;
for(i2=0;i2<schoolgs;i2++){
int a2;
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=1;
break;
}
}
break;
}
}
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n",i+1);
}
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("********************\n");
return n;
}
int ggy3(struct xmform2 xm2[],struct studentform student[],struct schoolform school[],int schoolgs,int studentrs){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD>ĸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
int n;
scanf("%d",&n);
getchar();
int i,i1,i2;
int a1,a2;
for(i=0;i<n;i++){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD>\n",i+1);
gets(xm2[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD> <20>ڶ<EFBFBD><DAB6><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><D7A2><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>ְ<EFBFBD>һ<EFBFBD>λس<CEBB><D8B3><EFBFBD>");
gets(xm2[i].mc1);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm2[i].mc1,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>");
student[i1].xm.scoer+=5;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=5;
break;
}
}
break;
}
}
gets(xm2[i].mc2);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm2[i].mc2,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD>");
student[i1].xm.scoer+=3;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=3;
break;
}
}
break;
}
}
gets(xm2[i].mc3);
for(i1=0;i1<studentrs;i1++){
a1=strcmp(xm2[i].mc3,student[i1].name);
if(a1==0){
strcpy(student[i1].xm.mc,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
student[i1].xm.scoer+=2;
for(i2=0;i2<schoolgs;i2++){
a2=strcmp(school[i2].name,student[i1].name1);
if(a2==0){
school[i2].scoer+=2;
break;
}
}
break;
}
}
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d<><64><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n",i+1);
}
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("********************\n");
return n;
}
void xscz(struct studentform student[],int studentrs){ //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ѡ<EFBFBD>ֲ<EFBFBD><D6B2>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ң<EFBFBD>
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
char name[20];
gets(name);
int i,a,a1=0;
for(i=0;i<studentrs;i++){
a=strcmp(student[i].name,name);
if(a==0){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20>Ա<EFBFBD><D4B1><EFBFBD>%s <20><><EFBFBD>䣺%d <20><><EFBFBD>ţ<EFBFBD>%s \n",student[i].name,student[i].xb,student[i].age,student[i].number);
6 years ago
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ:%s <20>μ<EFBFBD><CEBC><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD>Σ<EFBFBD>%s <20>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>%d \n",student[i].name1,student[i].xm.name,student[i].xm.mc,student[i].xm.scoer);
6 years ago
a1=1; //<2F><>ֹ<EFBFBD><D6B9>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϣδ<CFA2><CEB4>¼<EFBFBD><C2BC><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>
break;
}
}
if(a1==1){
;
}else{
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
}
printf("********************\n");
}
void xscz1(struct studentform student[],int studentrs){ //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ѡ<EFBFBD>ֲ<EFBFBD><D6B2>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ų<EFBFBD><C5B2>ң<EFBFBD>
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>ѡ<EFBFBD>ֱ<EFBFBD><EFBFBD><EFBFBD>\n");
char number[20];
gets(number);
int i,a,a1=0;
for(i=0;i<studentrs;i++){
a=strcmp(student[i].number,number);
if(a==0){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20>Ա<EFBFBD><D4B1><EFBFBD>%s <20><><EFBFBD>䣺%d <20><><EFBFBD>ţ<EFBFBD>%s \n",student[i].name,student[i].xb,student[i].age,student[i].number);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ:%s <20>μ<EFBFBD><CEBC><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD>Σ<EFBFBD>%s <20>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>%d ",student[i].name1,student[i].xm.name,student[i].xm.mc,student[i].xm.scoer);
a1=1; //<2F><>ֹ<EFBFBD><D6B9>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϣδ<CFA2><CEB4>¼<EFBFBD><C2BC><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>
break;
}
}
if(a1==1){
;
}else{
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
}
printf("********************\n");
}
void xmcz1(struct xmform1 xm1[],int xmgs1){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
char name[20];
gets(name);
int i,a,a1=0;
for(i=0;i<xmgs1;i++){
a=strcmp(xm1[i].name,name);
if(a==0){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD>%s\n",xm1[i].name);
printf("<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s ",xm1[i].mc1,xm1[i].mc2,xm1[i].mc3,xm1[i].mc4,xm1[i].mc5);
a1=1; //<2F><>ֹ<EFBFBD><D6B9>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϣδ<CFA2><CEB4>¼<EFBFBD><C2BC><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>
break;
}
}
if(a1==1){
;
}else{
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
}
printf("********************\n");
}
void xmcz2(struct xmform2 xm2[],int xmgs2){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
char name[20];
gets(name);
int i,a,a1=0;
for(i=0;i<xmgs2;i++){
a=strcmp(xm2[i].name,name);
if(a==0){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD>%s\n",xm2[i].name);
printf("<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s \n",xm2[i].mc1,xm2[i].mc2,xm2[i].mc3);
a1=1; //<2F><>ֹ<EFBFBD><D6B9>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϣδ<CFA2><CEB4>¼<EFBFBD><C2BC><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>
break;
}
}
if(a1==1){
;
}else{
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
}
printf("********************\n");
}
void xxcz1(struct schoolform school[],int schoolgs){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
char name[20];
gets(name);
int i,a,a1=0;
for(i=0;i<schoolgs;i++){
a=strcmp(school[i].name,name);
if(a==0){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>\n");
6 years ago
printf("<EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD>ţ<EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d <20>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>%d \n",school[i].name,school[i].id,school[i].number,school[i].scoer);
6 years ago
//printf("<22><><EFBFBD><EFBFBD>ѧУ:%s <20>μ<EFBFBD><CEBC><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD>Σ<EFBFBD>%s <20>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>%d "<22><>student[i].name1,student[i].xm.name,student[i].xm.mc,student.xm.score);
a1=1; //<2F><>ֹ<EFBFBD><D6B9>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϣδ<CFA2><CEB4>¼<EFBFBD><C2BC><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>
break;
}
}
if(a1==1){
;
}else{
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
}
printf("********************\n");
}
void xxcz2(struct schoolform school[],int schoolgs){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
char number[20];
gets(number);
int i,a,a1=0;
for(i=0;i<schoolgs;i++){
a=strcmp(school[i].id,number);
if(a==0){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>\n");
6 years ago
printf("<EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD>ţ<EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d <20>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>%d \n",school[i].name,school[i].id,school[i].number,school[i].scoer);
6 years ago
//printf("<22><><EFBFBD><EFBFBD>ѧУ:%s <20>μ<EFBFBD><CEBC><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD>Σ<EFBFBD>%s <20>ܷ<EFBFBD><DCB7><EFBFBD><EFBFBD><EFBFBD>%d "<22><>student[i].name1,student[i].xm.name,student[i].xm.mc,student.xm.score);
a1=1; //<2F><>ֹ<EFBFBD><D6B9>Щѡ<D0A9><D1A1><EFBFBD><EFBFBD>Ϣδ<CFA2><CEB4>¼<EFBFBD><C2BC><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>
break;
}
}
if(a1==1){
;
}else{
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
}
printf("********************\n");
}
void schoolph(struct schoolform school[],int schoolgs){
int max=school[0].scoer;int maxnumber=0;
int ph[50];
int i,i1,t,t1;
t1=schoolgs;
for(i1=0;i1<schoolgs;i1++){
for(i=0;i<schoolgs;i++){
if(school[i].scoer>max){
max=school[i].scoer;
maxnumber=i;
}}
t=school[schoolgs-1].scoer;
school[schoolgs-1].scoer=max;
school[maxnumber].scoer=t;
schoolgs-=1;
ph[i1]=maxnumber;
}
printf("ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɸߵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD>\n");
schoolgs=t1;
//printf("ѧУ<D1A7><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d\n",schoolgs);
for(i=0;i<schoolgs;i++){
printf("<EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d\n",school[ph[i]].name,school[ph[i]].scoer);
}
printf("********************\n");
}
void studentph(struct studentform student[],int studentrs){
int max=student[0].xm.scoer;int maxnumber=0;
int ph[50];
int i,i1,t,t1;
t1=studentrs;
for(i1=0;i1<studentrs;i1++){
for(i=0;i<studentrs;i++){
if(student[i].xm.scoer>max){
max=student[i].xm.scoer;
maxnumber=i;
}}
t=student[studentrs-1].xm.scoer;
student[studentrs-1].xm.scoer=max;
student[maxnumber].xm.scoer=t;
studentrs-=1;
ph[i1]=maxnumber;
}
printf("ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɸߵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD>\n");
studentrs=t1;
for(i=0;i<studentrs;i++){
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d\n",student[ph[i]].name,student[ph[i]].xm.scoer);
}
printf("********************\n");
}
6 years ago
void dudan1(struct schoolform school[]){
int schoolgs;
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ<EFBFBD>\n");
if((fp=fopen("schoolgs","rb+"))==NULL){
printf("<EFBFBD>ܳ<EFBFBD>δ<EFBFBD>ܰ<EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD>ܳ<EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
}
rewind(fp);
fscanf(fp,"%5d",&schoolgs);
fclose(fp);
int i;
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>\n");
if((fp=fopen("schoolform","rb+"))==NULL){
printf("<EFBFBD>ļ<EFBFBD>δ<EFBFBD>ܰ<EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD>ļ<EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
}
rewind(fp); //<2F><><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD>ǰ<EFBFBD><C7B0>
for(i=0;i<schoolgs;i++){
fscanf(fp,"%10s%10s%3d",school[i].name,school[i].id,&school[i].number);
}
printf("<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("********************\n");
}
void dudan2(struct studentform student[]){
int studentrs;
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܳ<EFBFBD>\n");
if((fp=fopen("studentrs","rb+"))==NULL){
printf("<EFBFBD>ܳ<EFBFBD>δ<EFBFBD>ܰ<EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD>ܳ<EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
}
rewind(fp);
fscanf(fp,"%5d",&studentrs);
fclose(fp);
int i;
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>\n");
if((fp=fopen("schoolform","rb+"))==NULL){
printf("<EFBFBD>ļ<EFBFBD>δ<EFBFBD>ܰ<EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
exit(0);
}else{
printf("<EFBFBD>ļ<EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
}
rewind(fp); //<2F><><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD>ǰ<EFBFBD><C7B0>
for(i=0;i<studentrs;i++){
fscanf(fp,"%10s%5s%10s%5d%10s%10s",student[i].name,student[i].xb,student[i].number,&student[i].age,student[i].name1,student[i].xm.name);
}
printf("<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("********************\n");
}
6 years ago
int main(){
6 years ago
system("cls"); //<2F><><EFBFBD><EFBFBD>
system("color 2F"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD> (<28><><EFBFBD>ۣ<EFBFBD>
6 years ago
printf("<<**********<2A><>ӭ<EFBFBD><D3AD><EFBFBD><EFBFBD><EFBFBD>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD>ϵͳ**********>>\n");
printf("<EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¹<EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>\n");
struct studentform student[50];
struct schoolform school[10];
struct xmform1 xm1[15];
struct xmform2 xm2[15];
int studentrs;
int schoolgs;
int xmgs1;
int xmgs2;
char name[10];
int a,a1,a2; //a2Ϊ<32><CEAA><EFBFBD><EFBFBD>switch<63>˳<EFBFBD>ʱ<EFBFBD>õ<EFBFBD><C3B5>ַ<EFBFBD>
int i;
6 years ago
int b1=1,b2=1; ///b1<62><31>b2<62><32>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD><D4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܽ⿪
6 years ago
//scanf("%d",&a);
do{
6 years ago
printf("<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD>Գ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(1.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<D1A7><D0A3>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2.<2E><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѧУ<D1A7><D0A3>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> )\n");
printf("********************\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴0)\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴1<EFBFBD><EFBFBD>\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>밴2<EFBFBD><EFBFBD>\nѰ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>밴3<EFBFBD><EFBFBD>\nѰ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>밴4<EFBFBD><EFBFBD>\nѰ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD>밴5<EFBFBD><EFBFBD>\nѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴6<EFBFBD><EFBFBD>\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴7<EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴8<EFBFBD><EFBFBD>\n");
printf("<EFBFBD>˳<EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴9<EFBFBD><EFBFBD>\n");
6 years ago
printf("********************\n");
scanf("%d",&a);
6 years ago
do{
if(a==0||a==1||a==8||a==9) { break ;}
else{
if(b1==0&&b2==0){ break;
}
else{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD>Ȳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("********************\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>°<EFBFBD>һ<EFBFBD>Σ<EFBFBD>0<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>8<EFBFBD><EFBFBD>\n");
scanf("%d",&a);
}}}while(1);
6 years ago
switch(a){
case 0:
//struct studentform student[50];
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
//printf("<22><><EFBFBD>ж<EFBFBD><D0B6><EFBFBD>λѡ<CEBB>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD>\n")
//int n;
//scanf("%d",&n);
studentrs=ggy(student);
6 years ago
b1=0 ;
6 years ago
break;
case 1:
//struct schoolform school[10];
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
schoolgs=ggy1(school);
6 years ago
b2=0;
6 years ago
break;
case 2:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>ȡǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<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");
xmgs1=ggy2(xm1,student,school,schoolgs,studentrs);
printf("<EFBFBD><EFBFBD>ʼ<EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
xmgs2=ggy3(xm2,student,school,schoolgs,studentrs);
break;
case 3:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>Ĺ<EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD>ҷ<EFBFBD>ʽ <20><>һ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ң<EFBFBD><D2A3><EFBFBD>0<EFBFBD><30> <20>ڶ<EFBFBD><DAB6>ָ<EFBFBD><D6B8><EFBFBD>ѡ<EFBFBD>ֱ<EFBFBD><D6B1>Ų<EFBFBD><C5B2>ң<EFBFBD><D2A3><EFBFBD>1<EFBFBD><31> <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>֣<EFBFBD>\n");
scanf("%d",&a1);
getchar();
a2=1;
do{
switch(a1){
case 0:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˰<EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
xscz(student,studentrs);
a2=0;
break;
case 1:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˸<EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD>ֱ<EFBFBD><EFBFBD>Ų<EFBFBD><EFBFBD><EFBFBD>\n");
xscz1(student,studentrs);
a2=0;
break;
default:
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>루0~1<><31><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>\n");
scanf("%d",&a1);
getchar();
}
}while(a2);
break;
case 4:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>һ<EFBFBD>ఴ0<E0B0B4><30><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6>ఴ1<E0B0B4><31>\n");
scanf("%d",&a1);
getchar();
a2=1;
do{
switch(a1){
case 0:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˰<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
xmcz1(xm1,xmgs1);
a2=0;
break;
case 1:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˰<EFBFBD><EFBFBD>ڶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
xmcz2(xm2,xmgs2);
a2=0;
break;
default:
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>루0~1<><31><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>\n");
scanf("%d",&a1);
getchar();
}
}while(a2);
break;
case 5:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD>Ҳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD>Ϣ<EFBFBD>Ĺ<EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱ<EFBFBD>ҷ<EFBFBD>ʽ <20><>һ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD>ѧУ<D1A7><D0A3><EFBFBD>Ʋ<EFBFBD><C6B2>ң<EFBFBD><D2A3><EFBFBD>0<EFBFBD><30> <20>ڶ<EFBFBD><DAB6>ָ<EFBFBD><D6B8><EFBFBD>ѧУ<D1A7><D0A3><EFBFBD>Ų<EFBFBD><C5B2>ң<EFBFBD><D2A3><EFBFBD>1<EFBFBD><31> <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>֣<EFBFBD>\n");
scanf("%d",&a1);
getchar();
a2=1;
do{
switch(a1){
case 0:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˰<EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD>Ʋ<EFBFBD><EFBFBD><EFBFBD>\n");
xxcz1(school,schoolgs);
a2=0;
break;
case 1:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˸<EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD>Ų<EFBFBD><EFBFBD><EFBFBD>\n");
xxcz2(school,schoolgs);
a2=0;
break;
default:
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>루0~1<><31><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>\n");
scanf("%d",&a1);
getchar();
}
}while(a2);
break;
case 6:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
schoolph(school,schoolgs);
break;
case 7:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˲<EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
studentph(student,studentrs);
break;
case 8:
6 years ago
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>ԣ<EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD>ݶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴0<EFBFBD><EFBFBD> ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD>ݶ<EFBFBD><DDB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴1<EBB0B4><31> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴2<EBB0B4><32>\n");
scanf("%d",&a1);
getchar();
a2=1;
do{
switch(a1){
case 0:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧУ<EFBFBD><EFBFBD><EFBFBD>ݶ<EFBFBD><EFBFBD><EFBFBD>\n");
dudan1(school);
b2=0;
a2=0;
break;
case 1:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˶<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݶ<EFBFBD><EFBFBD><EFBFBD>\n");
dudan2(student);
b1=0;
a2=0;
break;
case 2:
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
dudan1(school);
dudan2(student);
b1=0;
b2=0;
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
a2=0;
break;
default:
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>루0~2<><32><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>\n");
scanf("%d",&a1);
getchar();
}
}while(a2);
break;
case 9:
6 years ago
printf("<EFBFBD>ɹ<EFBFBD><EFBFBD>˳<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>лʹ<EFBFBD>ã<EFBFBD>\n");
return 0;
default:
6 years ago
printf("<EFBFBD><EFBFBD><EFBFBD>0~9<><39><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>\n");
6 years ago
}
}while(1);
return 0;
}