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.

735 lines
25 KiB

6 years ago
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct
{
char name[20]; //ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char xuehao[20]; //ѧ<><D1A7>ѧ<EFBFBD><D1A7>
char phone[20]; //ѧ<><D1A7><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD>
char qq[20]; //ѧ<><D1A7>QQ<51><51>
int score[3]; //ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ſγɼ<CEB3>
int sum; //ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD>ſγɼ<CEB3><C9BC><EFBFBD><EFBFBD>ܺ<EFBFBD>
}STU;
int addstu(); //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ
void stupaixu(); //<2F><>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɸߵ<C9B8><DFB5><EFBFBD><EFBFBD><EFBFBD>ʾ
int xhcz(); //<2F><>ѧ<EFBFBD>Ž<EFBFBD><C5BD>в<EFBFBD><D0B2><EFBFBD>
int namecz(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
int xxxg(); //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD>ţ<EFBFBD><C5A3><EFBFBD><EFBFBD>Ը<EFBFBD><D4B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
int shanchu(); //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD>ţ<EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
void fsdxs(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ <20>ɼ<EFBFBD>
int menu(); //<2F>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD>
int stdk(); //ѧ<><D1A7><EFBFBD>˿ڽ<CBBF><DABD><EFBFBD>
int tedk(); //<2F><>ʦ<EFBFBD>˿ڽ<CBBF><DABD><EFBFBD>
int main()
{
system("color f1"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD> <stdlib.h> <20><><EFBFBD><EFBFBD>16<31><36><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
menu(); //<2F><><EFBFBD>ò˵<C3B2><CBB5><EFBFBD><EFBFBD><EFBFBD><E6BAAF>
for(;;)
{
switch(menu()) //<2F><><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD> <20>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󷵻<EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
{
case 1:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
stdk(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 2:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD>ʦ<EFBFBD><CAA6><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
tedk(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 0:
printf("\n\t\t<><74>ӭ<EFBFBD>ٴ<EFBFBD>ʹ<EFBFBD>ã<EFBFBD>\n\n\t\t");
system("pause");
exit(0);
}
}
return 0;
}
int menu() //<2F>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD>
{
char xuanze; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB> <20>ַ<EFBFBD><D6B7><EFBFBD> <20><>"ѡ<><D1A1>"<22><> <20><><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int xz; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB> <20><><EFBFBD><EFBFBD> <20><>"ѡ<><D1A1>"<22><> <20><>Ϊ <20>ַ<EFBFBD><D6B7><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ֵ
do
{
system("cls"); //<2F><><EFBFBD><EFBFBD>
printf("\n\t\t************<2A><><EFBFBD>Ϲ<EFBFBD>ҵ<EFBFBD><D2B5>ѧ<EFBFBD><D1A7>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ϵͳ************\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t*<2A><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD> <20><> *\n");
printf("\t\t*<2A><> 1.ѧ<><D1A7> <20><> *\n");
printf("\t\t*<2A><> 2.<2E><>ʦ <20><> *\n");
printf("\t\t*<2A><> 0.<2E>˳<EFBFBD> <20><> *\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t************************************************\n");
printf("\t\t<><74><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>(0-2):");
fflush(stdin); //<2F><>ֹ<EFBFBD>û<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
scanf("%c", &xuanze); //<2F><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
}while(xuanze<'0' || xuanze>'2'); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>Ϲ
xz = xuanze-'0'; //<2F><><EFBFBD>ַ<EFBFBD><D6B7>͵<EFBFBD>ѡ<EFBFBD><D1A1>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
switch(xz) //<2F><><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD> "ѡ<><D1A1>"
{
case 1:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
stdk(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 2:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD>ʦ<EFBFBD><CAA6><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
tedk(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 0:
printf("\n\t\t<><74>ӭ<EFBFBD>ٴ<EFBFBD>ʹ<EFBFBD>ã<EFBFBD>\n\n\t\t");
system("pause");
exit(0);
}
}
int addstu() //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ
{
FILE *fp1=NULL, *fp=NULL; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8>
STU st[1000]; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E6B4A2><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ
int n, k=0, q; // n <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E6B4A2>Ҫ<EFBFBD><D2AA><EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// k <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD>ļ<EFBFBD><C4BC>е<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// q <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͱ<EFBFBD><CDB1><EFBFBD>
char names[20]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>洢ѧ<E6B4A2><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char xuehaos[20]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱѧ<CAB1><D1A7><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>洢ѧ<E6B4A2><D1A7>ѧ<EFBFBD><D1A7>
if((fp1 = fopen("xsxx.txt","r"))==NULL)
{
printf("\n\t\tError\n\n\t\t");
exit(0);
}
while(!feof(fp1))
{
fscanf(fp1,"%s %s %s %s %d %d %d %d",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //ÿ<><C3BF><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ
}
fclose(fp1);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\n\t\t");
scanf("%d",&n); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
system("cls");
for(int i=0; i<n; i++)
{
if((fp = fopen("xsxx.txt","a+"))==NULL) //<2F><> "a+" <20>ķ<EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ
{
printf("Error\n");
exit(0);
}
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\n\t\t");
fflush(stdin);
scanf("%s",&names);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7>:\n\n\t\t");
fflush(stdin);
scanf("%s",&xuehaos); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱѧ<CAB1>ţ<EFBFBD><C5A3><EFBFBD>ԭ<EFBFBD>ļ<EFBFBD><C4BC>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD>Ž<EFBFBD><C5BD>бȶԣ<C8B6><D4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ψһ<CEA8><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for(q=0; q<=k; q++)
{
if(strcmp(xuehaos,st[q].xuehao)==0) //<2F><><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ԭ<EFBFBD>ļ<EFBFBD><C4BC>е<EFBFBD>ѧ<EFBFBD>Ž<EFBFBD><C5BD>бȶ<D0B1>
{
printf("\n\t\t<><74>ѧ<EFBFBD><D1A7><EFBFBD>Ѵ<EFBFBD><D1B4>ڣ<EFBFBD><DAA3>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD>!!!\n\n\t\t");
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>\n\n\t\t");
fclose(fp);
system("pause"); //Ҫ<><D2AA><EFBFBD>û<EFBFBD>֪<EFBFBD><D6AA>Ϊʲô<CAB2><C3B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӣ<EFBFBD><D3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣһ<CDA3><D2BB>
system("cls");
return main(); //<2F>û<EFBFBD>֪<EFBFBD><D6AA><EFBFBD>˾Ϳ<CBBE><CDBF>Է<EFBFBD><D4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
}
fprintf(fp,"%s ",names); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ψһ<CEA8>ģ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD>Խ<EFBFBD><D4BD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>
fprintf(fp,"%s ",xuehaos); // "<22><><EFBFBD><EFBFBD>" <20><><><D1A7>" <20><><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ȥ
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD>:\n\n\t\t");
fflush(stdin); //ÿһ<C3BF><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>Ҫ<EFBFBD><D2AA><EFBFBD>ջ<EFBFBD><D5BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
scanf("%s",&st[i].phone); //<2F><>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>Ψһ֮<D2BB>󣬾Ϳ<F3A3ACBE><CDBF>Խ<EFBFBD><D4BD><EFBFBD><EFBFBD>µ<EFBFBD><C2B5><EFBFBD>Ϣֱ<CFA2><D6B1>д<EFBFBD><D0B4><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
fprintf(fp,"%s ",st[i].phone);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>QQ<51><51>:\n\n\t\t");
fflush(stdin);
scanf("%s",&st[i].qq);
fprintf(fp,"%s ",st[i].qq);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD>ſεijɼ<C4B3>:\n\n\t\t");
fflush(stdin);
scanf("%d %d %d",&st[i].score[0], &st[i].score[1], &st[i].score[2]);
st[i].sum = (st[i].score[0] + st[i].score[1] + st[i].score[2]);
fprintf(fp,"%d %d %d %d\n",st[i].score[0], st[i].score[1], st[i].score[2], st[i].sum);
fclose(fp);
system("cls");
}
}
void stupaixu() //<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>ɵļ<C9B5><C4BC><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD>
{
FILE *fp=NULL, *fp1 = NULL; //<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8> *fp <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD> *fp1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣд<CFA2><D0B4><EFBFBD>ļ<EFBFBD>
STU st[1000], temp; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int i, j, k=0; // i , j, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊѭ<CEAA><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> k <20><><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>
if((fp = fopen("xsxx.txt","r"))==NULL)
{
printf("Error\n");
exit(0);
}
while(!feof(fp))
{
fscanf(fp,"%s %s %s %s %d %d %d %d\n",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ
}
fclose(fp);
for(j=0; j<k-1; j++) //ð<><C3B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
for(i=0; i<k-1-j; i++)
{
if(st[i].sum<st[i+1].sum)
{
temp=st[i];
st[i]=st[i+1];
st[i+1]=temp;
}
}
}
if((fp1 = fopen("xsxx.txt","w"))==NULL) //<2F><>ð<EFBFBD><C3B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣȫ<CFA2><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԭ<EFBFBD>е<EFBFBD><D0B5><EFBFBD>Ϣ
{
printf("Error\n");
exit(0);
}
for(int o=0; o<k; o++)
{
fprintf(fp1,"%s %s %s %s %d %d %d %d\n",st[o].name,st[o].xuehao,st[o].phone,st[o].qq,st[o].score[0], st[o].score[1],st[o].score[2],st[o].sum);
}
fclose(fp1);
printf("\n\t\t********************************ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ******************************\n");
printf("\t\t----------------------------------------------------------------------\n");
for(int t=0; t<k; t++)
{
printf("\t\t<><74>%d<><64>:\n",t+1);
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tѧ<74><D1A7>:%-16s\n",st[t].name,st[t].xuehao);
printf("\t\t<>ֻ<EFBFBD><D6BB><EFBFBD>:%-16s\tQQ<51><51>:%-16s\n",st[t].phone,st[t].qq);
for(int s=0; s<3; s++)
{
printf("\t\t");
printf("<22><>%d<><64>Ŀ<EFBFBD>ɼ<EFBFBD>:%3d",s+1,st[t].score[s]);
}
printf("\n\t\t<>ܷ<EFBFBD>:%d\n",st[t].sum);
printf("\t\t----------------------------------------------------------------------\n");
}
printf("\n\t\t");
}
int xhcz() //<2F><>ѧ<EFBFBD>Ų<EFBFBD><C5B2><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD>
{
FILE *fp=NULL; //<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8>
STU st[1000], tempa; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9A3AC>ʱ<EFBFBD><EFBFBD><E1B9B9>
int i, k=0; // k <20><><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char xuehaos[20]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ ѧ<><D1A7> <20>ַ<EFBFBD><D6B7><EFBFBD>
if((fp = fopen("xsxx.txt","r"))==NULL)
{
printf("Error\n");
exit(0);
}
while(!feof(fp))
{
fscanf(fp,"%s %s %s %s %d %d %d %d",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ
}
fclose(fp);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7>:\n\n\t\t");
scanf("%s", &xuehaos); //<2F><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>
system("cls");
for(i=0; i<=k; i++) //ѭ<><D1AD><EFBFBD>ж<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>Ƿ<EFBFBD>ƥ<EFBFBD><C6A5>
{
if(strcmp(xuehaos,st[i].xuehao)==0)
break;
}
if(i>k) // i > k ʱ<><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>Ŷ<EFBFBD>û<EFBFBD><C3BB>ƥ<EFBFBD><C6A5><EFBFBD>ģ<EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
{
printf("\n\t\t<><74><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>!\n\n\t\t");
system("pause"); //<2F><>ͣһ<CDA3>£<EFBFBD><C2A3><EFBFBD><EFBFBD>û<EFBFBD>֪<EFBFBD><D6AA>Ϊɶ<CEAA><C9B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
return main(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
else // i < k ʱ<><CAB1>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD><EFBFBD>ˣ<EFBFBD><CBA3><EFBFBD>ʱ<EFBFBD><CAB1> i <20><><EFBFBD><EFBFBD>
{
printf("\n\t\t********************************ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ******************************\n");
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tѧ<74><D1A7>:%-16s\n",st[i].name,st[i].xuehao);
printf("\t\t<>ֻ<EFBFBD><D6BB><EFBFBD>:%-16s\tQQ<51><51>:%-16s\n",st[i].phone,st[i].qq);
for(int s=0; s<3; s++)
{
printf("\t\t");
printf("<22><>%d<><64>Ŀ<EFBFBD>ɼ<EFBFBD>:%3d",s+1,st[i].score[s]);
}
printf("\n\t\t<>ܷ<EFBFBD>:%d\n",st[i].sum);
printf("\t\t----------------------------------------------------------------------\n");
printf("\n\t\t");
system("pause"); //<2F><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˣ<EFBFBD>Ȼ<EFBFBD><C8BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
return main(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
}
int xxxg() //<2F>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD> == "ѧ<><D1A7> <20>޸<EFBFBD>"<22><>ƴ<EFBFBD><C6B4>
{
FILE *fp=NULL, *fp2=NULL; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8>
STU st[1000], tempa; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD>һ<E9A3AC><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9>
int n, i, j, k=0, x; // k<><6B><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>
int km1, km2, km3, q, r; //<2F><>Ŀ1<C4BF><31><EFBFBD><EFBFBD>Ŀ2<C4BF><32><EFBFBD><EFBFBD>Ŀ3<C4BF><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͱ<EFBFBD><CDB1><EFBFBD>
char xuehaos[20], xiugais[20]; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʱ ѧ<><D1A7><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB> "<22>޸<EFBFBD>"<22>ַ<EFBFBD><D6B7><EFBFBD>
char xuanze; //<2F>ַ<EFBFBD><D6B7><EFBFBD> ѡ<><D1A1>
if((fp = fopen("xsxx.txt","r"))==NULL)
{
printf("Error\n");
exit(0);
}
while(!feof(fp))
{
fscanf(fp,"%s %s %s %s %d %d %d %d",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //ÿ<><C3BF><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ
}
fclose(fp);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7>:\n\n\t\t");
scanf("%s", &xuehaos); //<2F><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD>Ҫ<EFBFBD>޸<EFBFBD><DEB8>˵<EFBFBD>ѧ<EFBFBD><D1A7>
for(i=0; i<=k; i++) //ѭ<><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
if(strcmp(xuehaos,st[i].xuehao)==0)
break;
}
if(i>k)
{
printf("\n\t\t<><74><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>!\n\n\t\t");
system("pause");
return main();
}
else
{
printf("\n\t\t********************************ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ******************************\n");
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tѧ<74><D1A7>:%-16s\n",st[i].name,st[i].xuehao);
printf("\t\t<>ֻ<EFBFBD><D6BB><EFBFBD>:%-16s\tQQ<51><51>:%-16s\n",st[i].phone,st[i].qq);
for(int s=0; s<3; s++)
{
printf("\t\t");
printf("<22><>%d<><64>Ŀ<EFBFBD>ɼ<EFBFBD>:%3d",s+1,st[i].score[s]);
}
printf("\n\t\t<>ܷ<EFBFBD>:%d\n",st[i].sum);
printf("\t\t----------------------------------------------------------------------\n");
printf("\n\t\t************************************************\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t*<2A><> <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>: <20><> *\n");
printf("\t\t*<2A><> 1.<2E>޸<EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD>: <20><> *\n");
printf("\t\t*<2A><> 2.<2E>޸<EFBFBD>ѧ<EFBFBD><D1A7>: <20><> *\n");
printf("\t\t*<2A><> 3.<2E>޸<EFBFBD><DEB8>ֻ<EFBFBD><D6BB><EFBFBD>: <20><> *\n");
printf("\t\t*<2A><> 4.<2E>޸<EFBFBD>QQ<51><51>: <20><> *\n");
printf("\t\t*<2A><> 5.<2E>޸ijɼ<C4B3>: <20><> *\n");
printf("\t\t*<2A><> 0.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD> <20><> *\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t************************************************\n");
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸ĵ<DEB8><C4B5><EFBFBD>Ϣ:\n\t\t");
fflush(stdin);
scanf("%c", &xuanze);
x = xuanze - '0';
switch(x)
{
case 1:
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD><EFBFBD>:\n\n\t\t");
scanf("%s", &xiugais);
strcpy(st[i].name, xiugais);
printf("\n\t\t<>޸ijɹ<C4B3>!\n\n\t\t");
system("pause");
break;
case 2:
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD>ѧ<EFBFBD><D1A7>:\n\n\t\t");
scanf("%s", &xiugais);
for(q=0; q<=k; q++)
{
if(strcmp(xiugais,st[q].xuehao)==0) //<2F>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>е<EFBFBD>ѧ<EFBFBD>ų<EFBFBD>ͻ
{ //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>Ž<EFBFBD><C5BD>бȶԣ<C8B6><D4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD><D8B8>˾Ͳ<CBBE><CDB2>ܳɹ<DCB3><C9B9>޸<EFBFBD>
printf("\n\t\t<><74>ѧ<EFBFBD><D1A7><EFBFBD>Ѵ<EFBFBD><D1B4>ڣ<EFBFBD><DAA3>޷<EFBFBD><DEB7>޸<EFBFBD>!!!\n\n\t\t");
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>\n\n\t\t");
system("pause");
system("cls");
return main(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
}
strcpy(st[i].xuehao, xiugais); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD>
printf("\n\t\t<>޸ijɹ<C4B3>!\n\n\t\t");
system("pause");
break;
case 3:
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD>:\n\n\t\t");
scanf("%s", &xiugais);
strcpy(st[i].phone, xiugais);
printf("\n\t\t<>޸ijɹ<C4B3>!\n\n\t\t");
system("pause");
break;
case 4:
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD>QQ<51><51>:\n\n\t\t");
scanf("%s", &xiugais);
strcpy(st[i].qq, xiugais);
printf("\n\t\t<>޸ijɹ<C4B3>!\n\n\t\t");
system("pause");
break;
case 5:
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD>ſ<EFBFBD>Ŀ<EFBFBD>ɼ<EFBFBD>:\n\n\t\t");
scanf("%d %d %d", &km1, &km2, &km3); //<2F><><EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD>ſ<EFBFBD>Ŀ<EFBFBD>ijɼ<C4B3><C9BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> i <20><><EFBFBD>˵ijɼ<C4B3><C9BC><EFBFBD><EFBFBD><EFBFBD>
st[i].score[0] = km1;
st[i].score[1] = km2;
st[i].score[2] = km3;
st[i].sum = km1 + km2 + km3;
printf("\n\t\t<>޸ijɹ<C4B3>!\n\n\t\t");
system("pause");
break;
}
system("cls"); //<2F>ɹ<EFBFBD><C9B9>޸<EFBFBD><DEB8><EFBFBD>֮<EFBFBD>󣬽<EFBFBD><F3A3ACBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD>Ϣ<EFBFBD><CFA2>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
printf("\n\t\t********************************ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ******************************\n");
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tѧ<74><D1A7>:%-16s\n",st[i].name,st[i].xuehao);
printf("\t\t<>ֻ<EFBFBD><D6BB><EFBFBD>:%-16s\tQQ<51><51>:%-16s\n",st[i].phone,st[i].qq);
for(int s=0; s<3; s++)
{
printf("\t\t");
printf("<22><>%d<><64>Ŀ<EFBFBD>ɼ<EFBFBD>:%3d",s+1,st[i].score[s]);
}
printf("\n\t\t<>ܷ<EFBFBD>:%d\n",st[i].sum);
printf("\t\t----------------------------------------------------------------------\n");
printf("\n\t\t");
}
if((fp2 = fopen("xsxx.txt","w"))==NULL)
{
printf("\n\t\tError\n\n\t\t");
exit(0);
}
for(int o=0; o<k-1; o++) //<2F><><EFBFBD>޸ĺ<DEB8><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣѭ<CFA2><D1AD>д<EFBFBD><D0B4><EFBFBD>ļ<EFBFBD>
{
fprintf(fp2,"%s %s %s %s %d %d %d %d\n",st[o].name,st[o].xuehao,st[o].phone,st[o].qq,st[o].score[0], st[o].score[1],st[o].score[2],st[o].sum);
}
fclose(fp2);
}
int shanchu() //ɾ<><C9BE>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD>
{
FILE *fp=NULL; //<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8>
STU st[1000], tempa; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD>һ<><D2BB><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9>
int i, k=0; // i <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>, k <20><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>
char xuehaos[20]; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ţ<EFBFBD><C5A3><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>еĽ<D0B5><C4BD>бȶ<D0B1>
if((fp = fopen("xsxx.txt","r"))==NULL)
{
printf("\n\t\tError\n\n\t\t");
exit(0);
}
while(!feof(fp))
{
fscanf(fp,"%s %s %s %s %d %d %d %d",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //ÿ<><C3BF><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ
}
fclose(fp);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫɾ<D2AA><C9BE><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7>:\n\n\t\t");
scanf("%s", &xuehaos);
for(i=0; i<=k; i++)
{
if(strcmp(xuehaos,st[i].xuehao)==0) //<2F>ж<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>Ƿ<EFBFBD>ƥ<EFBFBD><C6A5>
break;
}
if(i>k) //<2F><><EFBFBD><EFBFBD> i > k ,˵<><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>е<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EAA3AC>û<EFBFBD><C3BB>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ƥ<EFBFBD>䣬ִ<E4A3AC>д˲<D0B4><CBB2><EFBFBD>
{
printf("\n\t\t<><74><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>!\n\n\t\t");
system("pause"); //<2F><><EFBFBD>û<EFBFBD>֪<EFBFBD><D6AA>Ϊɶ<CEAA><C9B6><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE>
return main();
}
else //<2F>˲<EFBFBD><CBB2><EFBFBD><EFBFBD>ǽ<EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><C8AB>д<EFBFBD><D0B4><EFBFBD>ļ<EFBFBD>
{
printf("\n\t\tɾ<74><C9BE><EFBFBD>ɹ<EFBFBD>!\n\n\t\t");
if((fp = fopen("xsxx.txt","w"))==NULL) //<2F><> "w" <20>ķ<EFBFBD>ʽ<EFBFBD>򿪣<EFBFBD><F2BFAAA3><EFBFBD>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD>ԭ<EFBFBD>ļ<EFBFBD>
{
printf("\n\t\tError\n\n\t\t");
exit(0);
}
for(int o=0; o<k-2; o++) //ԭ<><D4AD><EFBFBD><EFBFBD> k <20><>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ҫ<><D2AA>ԭ<EFBFBD><D4AD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD><EFBFBD>-1
{
if(strcmp(st[o].xuehao,xuehaos)==0) //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ƥ<EFBFBD>䵽Ҫɾ<D2AA><C9BE><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD>ţ<EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
{
for(int j=i; j<k-2; j++) //ѭ<><D1AD>Ҫɾ<D2AA><C9BE><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ǰһ<C7B0><D2BB>
st[j]=st[j+1];
}
fprintf(fp,"%s %s %s %s %d %d %d %d\n",st[o].name,st[o].xuehao,st[o].phone,st[o].qq,st[o].score[0], st[o].score[1],st[o].score[2],st[o].sum);
}
fclose(fp);
}
}
void fsdxs() //fsdxs==<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ
{
FILE *fp1=NULL, *fp=NULL;
STU st[1000];
int n, k=0, q, i, s=0; //s<>ǿ<EFBFBD><C7BF>أ<EFBFBD><D8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD>
float ave=0; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD>
if((fp1 = fopen("xsxx.txt","r"))==NULL)
{
printf("\n\t\tError\n\n\t\t");
exit(0);
}
while(!feof(fp1))
{
fscanf(fp1,"%s %s %s %s %d %d %d %d",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //<2F>Ƚ<EFBFBD><C8BD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
} //Ȼ<><C8BB><EFBFBD><EFBFBD>Ӧ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
fclose(fp1);
printf("\n\t\t********************************ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ******************************\n");
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\tƽ<74><C6BD><EFBFBD><EFBFBD>90<39><30><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD>:\n");
for(i=0; i<k-1; i++)
{
ave = st[i].sum/3.0;
if(ave>=90)
{
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tƽ<74><C6BD><EFBFBD><EFBFBD>:%5.2f\n", st[i].name, st[i].sum/3.0);
s = 1; //<2F><><EFBFBD><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>ʹ򿪿<CDB4><F2BFAABF>أ<EFBFBD><D8A3>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
ave = 0;
}
if(s==0) //<2F>жϿ<D0B6><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>򿪣<EFBFBD><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>򿪣<EFBFBD><F2BFAAA3><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
printf("\t\t<>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>!\n");
s = 0; //ÿһ<C3BF>ζ<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD>
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\tƽ<74><C6BD><EFBFBD><EFBFBD>80~90<39><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
for(i=0; i<k-1; i++)
{
ave = st[i].sum/3.0;
if(ave>=80 && ave<90)
{
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tƽ<74><C6BD><EFBFBD><EFBFBD>:%5.2f\n", st[i].name, st[i].sum/3.0);
s = 1; //<2F><><EFBFBD><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>ʹ򿪿<CDB4><F2BFAABF>أ<EFBFBD><D8A3>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
ave = 0;
}
if(s==0) //<2F>жϿ<D0B6><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>򿪣<EFBFBD><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>򿪣<EFBFBD><F2BFAAA3><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
printf("\t\t<>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>!\n");
s = 0; //ÿһ<C3BF>ζ<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD>
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\tƽ<74><C6BD><EFBFBD><EFBFBD>70~80<38><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
for(i=0; i<k-1; i++)
{
ave = st[i].sum/3.0;
if(ave>=70 && ave<80)
{
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tƽ<74><C6BD><EFBFBD><EFBFBD>:%5.2f\n", st[i].name, st[i].sum/3.0);
s = 1; //<2F><><EFBFBD><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>ʹ򿪿<CDB4><F2BFAABF>أ<EFBFBD><D8A3>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
ave = 0;
}
if(s==0) //<2F>жϿ<D0B6><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>򿪣<EFBFBD><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>򿪣<EFBFBD><F2BFAAA3><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
printf("\t\t<>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>!\n");
s = 0; //ÿһ<C3BF>ζ<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD>
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\tƽ<74><C6BD><EFBFBD><EFBFBD>60~70<37><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
for(i=0; i<k-1; i++)
{
ave = st[i].sum/3.0;
if(ave>=60 && ave<70)
{
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tƽ<74><C6BD><EFBFBD><EFBFBD>:%5.2f\n", st[i].name, st[i].sum/3.0);
s = 1; //<2F><><EFBFBD><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>ʹ򿪿<CDB4><F2BFAABF>أ<EFBFBD><D8A3>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
ave = 0;
}
if(s==0) //<2F>жϿ<D0B6><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>򿪣<EFBFBD><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>򿪣<EFBFBD><F2BFAAA3><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
printf("\t\t<>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>!\n");
s = 0; //ÿһ<C3BF>ζ<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD>
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\tƽ<74><C6BD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>60<36><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
for(i=0; i<k-1; i++)
{
ave = st[i].sum/3.0;
if(ave>=0 && ave<60)
{
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tƽ<74><C6BD><EFBFBD><EFBFBD>:%5.2f\n", st[i].name, st[i].sum/3.0);
s = 1; //<2F><><EFBFBD><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>ʹ򿪿<CDB4><F2BFAABF>أ<EFBFBD><D8A3>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<22>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
ave = 0;
}
if(s==0) //<2F>жϿ<D0B6><CFBF><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>򿪣<EFBFBD><F2BFAAA3><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>򿪣<EFBFBD><F2BFAAA3><EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
printf("\t\t<>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>!\n\n\t\t");
printf("\n\t\t");
}
int stdk() //ѧ<><D1A7><EFBFBD>˿<EFBFBD> "st == ѧ<><D1A7><EFBFBD><EFBFBD> dk == <20>˿<EFBFBD>"
{
char xuanze; //"ѡ<><D1A1>"
int xz; //"ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ"
do
{
system("cls"); //<2F><><EFBFBD><EFBFBD>
printf("\n\t\t************<2A><><EFBFBD>Ϲ<EFBFBD>ҵ<EFBFBD><D2B5>ѧ<EFBFBD><D1A7>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ϵͳ************\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t*<2A><> <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>: <20><> *\n");
printf("\t\t*<2A><> 1.<2E><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>ijɼ<C4B3><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 2.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 3.<2E><>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 4.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 0.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD> <20><> *\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t************************************************\n");
printf("\t\t<><74><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>(0-4):");
fflush(stdin); //<2F><>ֹ<EFBFBD>û<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
scanf("%c", &xuanze); //<2F><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
}while(xuanze<'0' || xuanze>'4'); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>Ϲ
xz = xuanze-'0'; //<2F><><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>"ѡ<><D1A1>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ
switch(xz) //<2F><><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD> "ѡ<><D1A1>"
{
case 1:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><>ʾ<EFBFBD><CABE><EFBFBD>гɼ<D0B3><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
stupaixu(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 2:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
fsdxs(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 3:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xhcz(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
case 4:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
namecz(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 0:
printf("\n\t\t<><74><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>\n\n\t\t");
system("cls");
return main(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
return stdk(); //<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>˿<EFBFBD>
}
int tedk() //<2F><>ʦ<EFBFBD>˿<EFBFBD> "te == <20><>ʦ<EFBFBD><CAA6> dk == <20>˿<EFBFBD>"
{
char xuanze; //"ѡ<><D1A1>"
int xz; //"ѡ<><D1A1>"<22><><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ
do
{
system("cls"); //<2F><><EFBFBD><EFBFBD>
printf("\n\t\t************<2A><><EFBFBD>Ϲ<EFBFBD>ҵ<EFBFBD><D2B5>ѧ<EFBFBD><D1A7>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ϵͳ************\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t*<2A><> <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>: <20><> *\n");
printf("\t\t*<2A><> 1.<2E><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD>ijɼ<C4B3><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 2.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 3.<2E><>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 4.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 5.<2E><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 6.<2E>޸<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 7.ɾ<><C9BE>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ <20><> *\n");
printf("\t\t*<2A><> 0.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD> <20><> *\n");
printf("\t\t*<2A><>-------------------------------------------<2D><> *\n");
printf("\t\t************************************************\n");
printf("\t\t<><74><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>(0-7):");
fflush(stdin); //<2F><>ֹ<EFBFBD>û<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
scanf("%c", &xuanze); //<2F><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
}while(xuanze<'0' || xuanze>'7'); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>Ϲ
xz = xuanze-'0'; //<2F><><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>"ѡ<><D1A1>"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ
switch(xz) //<2F><><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD> "ѡ<><D1A1>"
{
case 1:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><>ʾ<EFBFBD><CABE><EFBFBD>гɼ<D0B3><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
stupaixu(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 2:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
fsdxs(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 3:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xhcz(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
case 4:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
namecz(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 5:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
addstu(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 6:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
xxxg(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 7:
printf("\n\t\t<><74><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD> <20><>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD><D1AF>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>\n\n\t\t");
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
shanchu(); //<2F>ٵ<EFBFBD><D9B5>ú<EFBFBD><C3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
system("pause"); //<2F><><EFBFBD><EFBFBD>ʾ<EFBFBD>Ľ<EFBFBD><C4BD><EFBFBD><EFBFBD>̶<EFBFBD>ס
break;
case 0:
printf("\n\t\t<><74><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>\n\n\t\t");
system("cls");
return main(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
return tedk(); //<2F><><EFBFBD>ؽ<EFBFBD>ʦ<EFBFBD>˿<EFBFBD>
}
int namecz() //"cz == <20><><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD>"<22><><EFBFBD><EFBFBD>"<22><><EFBFBD>в<EFBFBD><D0B2>ҵĺ<D2B5><C4BA><EFBFBD>
{
FILE *fp=NULL; //<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8>
STU st[1000]; //<2F><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵĽṹ<C4BD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int i, k=0; //k <20><><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char names[20]; //<2F><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>бȶ<D0B1>
if((fp = fopen("xsxx.txt","r"))==NULL) //<2F><><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><E5A3AC><EFBFBD>бȶ<D0B1>
{
printf("\n\t\tError\n\n\t\t");
exit(0);
}
while(!feof(fp))
{
fscanf(fp,"%s %s %s %s %d %d %d %d",&st[k].name,&st[k].xuehao,&st[k].phone,&st[k].qq,&st[k].score[0], &st[k].score[1],&st[k].score[2],&st[k].sum);
k++; //ÿ<><C3BF><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>¼ѧ<C2BC><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
fclose(fp);
printf("\n\t\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\n\t\t");
scanf("%s", &names);
for(i=0; i<=k; i++)
{
if(strcmp(names,st[i].name)==0)
break;
}
if(i>k) //<2F><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2>ϣ<EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
{
system("cls");
printf("\n\t\t<><74><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>!\n\n\t\t");
system("pause");
return main();
}
else //<2F><><EFBFBD><EFBFBD> i < k <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD>ģ<EFBFBD>ִ<EFBFBD>д˲<D0B4><CBB2><EFBFBD>
{
system("cls"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>Ϣ<EFBFBD><CFA2><EFBFBD>Ͳ<EFBFBD><CDB2><EFBFBD><EFBFBD><EFBFBD>
printf("\n\t\t********************************ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ******************************\n");
printf("\t\t----------------------------------------------------------------------\n");
printf("\t\t<><74><EFBFBD><EFBFBD>:%-16s\tѧ<74><D1A7>:%-16s\n",st[i].name,st[i].xuehao);
printf("\t\t<>ֻ<EFBFBD><D6BB><EFBFBD>:%-16s\tQQ<51><51>:%-16s\n",st[i].phone,st[i].qq);
for(int s=0; s<3; s++)
{
printf("\t\t");
printf("<22><>%d<><64>Ŀ<EFBFBD>ɼ<EFBFBD>:%3d",s+1,st[i].score[s]);
}
printf("\n\t\t<>ܷ<EFBFBD>:%d\n",st[i].sum);
printf("\t\t----------------------------------------------------------------------\n");
printf("\n\t\t");
system("pause"); //<2F><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> , Ȼ<><C8BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
return main(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
}