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.

59 lines
1.6 KiB

6 years ago
int main()
{ FILE *fp;
int choice;
int flag1=1,flag2=1;
system("cls");
do
{
printf("\n*************************************************************\n");
printf("\n** <20>˶<EFBFBD><CBB6><EFBFBD><EFBFBD>Ʒ<EFBFBD>ϵͳ **\n");
printf("\n** 1.¼<><C2BC><EFBFBD><EFBFBD>Ϣ **\n");
printf("\n** 2.<2E><>ȡ<EFBFBD><C8A1>Ϣ **\n");
printf("\n** 3.<2E><>ʾ<EFBFBD><CABE>Ϣ **\n");
printf("\n** 4.<2E><>ѯ<EFBFBD><D1AF>Ϣ **\n");
printf("\n** 5.<2E>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD> **\n");
printf("\n*************************************************************\n");
printf("\n\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
scanf("%d",&choice);
if(choice==1)
flag1=0;
else
if((fp=fopen("sportsdata.txt","r"))!=NULL )
flag2=0;
else
{
system("cls");
printf("û<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ!\n");
}
}while(flag1&&flag2);
switch(choice)
{
case 1:
printf("\n==========<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ========\n");
input();
write();
printf("==========<3D><>Ϣ<EFBFBD>Ѵ<EFBFBD><D1B4>뵵=========");
main();
case 2:
read();
write;
break;
case 3:
printf("===========<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ==========\n");
if(flag1)
read();
output();
main();
case 4:
printf("===========<3D><>ѯ<EFBFBD><D1AF>Ϣ==========\n");
if(flag1)
read();
chaxun();
main();
case 5:
printf("\nлл<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>"); exit(0);
default:
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n"); exit(0);
}}