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.

1164 lines
15 KiB

6 years ago
#include "stdio.h"
#include "stdlib.h"
#include "conio.h"//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̨<EFBFBD><CCA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><C4BA><EFBFBD>
#include "string.h"//<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>
#include "math.h"
#define LEN sizeof(struct library)
#define LEN1 sizeof(struct reader)
#define NULL 0
struct library//ͼ<><CDBC><EFBFBD>ݽṹ<DDBD><E1B9B9>
{int xcl;//<2F><><EFBFBD><EFBFBD>
float price;//<2F><><EFBFBD><EFBFBD>
char name[20],author[20],chuban[20],kind[20],shuhao[20];
struct library *next;
};
struct reader//<2F><><EFBFBD>߽ṹ<DFBD><E1B9B9>
{
int zhenghao;
char mingzi[20],riqi[20],zname[20];
struct reader *next;
};
void mainmenu()//<2F><><EFBFBD>˵<EFBFBD>
{ system ("cls");
printf("**************************************************");
printf("\n\n 1.ͼ<><CDBC><EFBFBD><EFBFBD>Ϣ\n\n");
printf("\n\n 2.<2E><><EFBFBD><EFBFBD>ϵͳ\n\n");
printf("\n\n 3.<2E>˳<EFBFBD>ϵͳ\n\n");
printf("\n\n <20><EFBFBD><EBB0B4>ѡ<EFBFBD>񣬻س<F1A3ACBB>ȷ<EFBFBD><C8B7>\n");
printf("*************************************************\n");
return ;
}
void menu1() //<2F><>ʾͼ<CABE><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>˵<EFBFBD>
{ system ("cls");
printf("****************************************************");
printf("\n 1.<2E><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>\n\n");
printf("\n 2.ɾ<><C9BE>ͼ<EFBFBD><CDBC>\n\n");
printf("\n 3.ͼ<><CDBC><EFBFBD><EFBFBD>ѯ\n\n");
printf("\n 4.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
printf("\n 5.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>\n\n");
printf("\n <20><EFBFBD><EBB0B4>ѡ<EFBFBD>񣬻س<F1A3ACBB>ȷ<EFBFBD><C8B7>\n");
printf("***************************************************\n");
return ;
}
void menu2() //<2F><>ʾ<EFBFBD><CABE>ѯ<EFBFBD>˵<EFBFBD>
{ system ("cls");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD>,<2C><><EFBFBD>߻<EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF>\n");
printf("<EFBFBD><EFBFBD><EFBFBD>𣨿<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ <20><><EFBFBD>ξ<EFBFBD><CEBE><EFBFBD> <20><>ʷ<EFBFBD><CAB7><EFBFBD><EFBFBD> <20><>ʶ<EFBFBD><CAB6>̬ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
return ;
}
void main1()//main1<6E><31><EFBFBD><EFBFBD>
{void tsgxx();//<2F><><EFBFBD><EFBFBD>
void jieshuxitong();//<2F><><EFBFBD><EFBFBD>
char choose;
mainmenu();
scanf("%c",&choose);
switch(choose)//<2F><><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD>ѡ<EFBFBD><D1A1>
{ case '1':
tsgxx();
break;
case '2':
jieshuxitong();
break;
case '3':
system ("cls");
getch();
exit(0);
system ("cls");
break;
}}
void tsgxx()//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
{ void tsjinku();
void shanchu();
void chaxunts();
void xianshikucun();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char choose;
menu1();
scanf("%c",&choose);
scanf("%c",&choose);
for (;;)
switch(choose)
{ case '1':
tsjinku();
break;
case '2':
shanchu();
break;
case '3':
chaxunts();
break;
case '4':
xianshikucun();
break;
case '5':
main1();
break;
}}
int tjzs()//ͳ<><CDB3><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{ FILE *fp;
int txcl=0,n;
float tprice=0;
char tname[20]={'\0'},tauthor[20]={'\0'},tchuban[20]={'\0'},tkind[20]={'\0'},tshuhao[20]={'\0'};
fp=fopen("library.txt","r");//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
for (n=0;!feof(fp);n++)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
fscanf(fp,"%s%s%s%s%s%d%f",tshuhao,tname,tauthor,tchuban,tkind,&txcl,&tprice);
n--;
fclose(fp);//<2F>ر<EFBFBD><D8B1>ļ<EFBFBD>
return (n);//<2F><><EFBFBD>ظ<EFBFBD><D8B8><EFBFBD>
}
int tjdzzs()//ͳ<><CDB3><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{ FILE *fp;
int zhenghao=0,n;
char mingzi[20]={'\0'},riqi[20]={'\0'},zname[20]={'\0'};
fp=fopen("reader.txt","r");//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
for (n=0;!feof(fp);n++)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
fscanf(fp,"%d%s%s%s ",&zhenghao,&mingzi,&riqi,&zname);
fclose(fp);//<2F>ر<EFBFBD><D8B1>ļ<EFBFBD>
return (n);//<2F><><EFBFBD>ظ<EFBFBD><D8B8><EFBFBD>
}
void tsjinku()//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2BAAF>
{ FILE *fp;
int xcl=0,n=0;
float price=0;
char name[20]={'\0'},author[20]={'\0'},kind[20]={'\0'},chuban[20]={'\0'},shuhao[20]={'\0'};
char hitkey;
system ("cls");
if ((fp=fopen("library.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>½<EFBFBD>
{ fp=fopen("library.txt","w");
fclose(fp);
}
fp=fopen("library.txt","a");
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ:\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>");
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>𣨿<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ <20><><EFBFBD>ξ<EFBFBD><CEBE><EFBFBD> <20><>ʷ<EFBFBD><CAB7><EFBFBD><EFBFBD> <20><>ʶ<EFBFBD><CAB6>̬ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
for (;hitkey!=27;)//ѭ<><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{ if (n!=0)
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
scanf("%s%s%s%s%s%d%f",shuhao,name,author,chuban,kind,&xcl,&price);
fprintf(fp,"%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",shuhao,name,author,chuban,kind,xcl,price);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴Esc\n");
n++;
hitkey=getch();
for (;hitkey!=13&&hitkey!=27;)
hitkey=getch();
}
fclose(fp);
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>!");
getch();
tsgxx();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
}
void shanchu()//ɾ<><C9BE>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>Ϣ
{ struct library *head=NULL;
struct library *p,*p1,*p2;
int txcl=0,n=0,j,i;
float tprice=0;
char tname[20]={'\0'},tauthor[20]={'\0'},tchuban[20]={'\0'},tkind[20]={'\0'},ttname[20]={'\0'},tshuhao[20]={'\0'};
char hitkey;
FILE *fp;
if ((fp=fopen("library.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
{ system ("cls");
printf("\n<EFBFBD><EFBFBD>¼<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
getch();
tsgxx();
}
else
{ system ("cls");
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");//<2F><><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
scanf("%s",&ttname);
printf("\nȷ<EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD>밴Esc\n");
hitkey=getch();
for(;hitkey!=13&&hitkey!=27;)
hitkey=getch();
if (hitkey==27)
tsgxx();
fp=fopen("library.txt","r");
for (j=0;!feof(fp);)//<2F><><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ͳ<EFBFBD>Ƹ<EFBFBD><C6B8><EFBFBD>
{ j++;
fscanf(fp,"%s%s%s%s%s%d%f",tshuhao,tname,tauthor,tchuban,tkind,&txcl,&tprice);}
fclose(fp);
fp=fopen("library.txt","r");
for (i=1;i<j;i++)
{ fscanf(fp,"%s%s%s%s%s%d%f",tshuhao,tname,tauthor,tchuban,tkind,&txcl,&tprice);
if (strcmp(ttname,tname))//<2F>Ƚ<EFBFBD><C8BD><EFBFBD><EFBFBD>֣<EFBFBD><D6A3><EFBFBD><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>
{ n++;
if (n==1)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{ p1=p2=(struct library*)malloc(LEN);
head=p1;}
else
{ p2->next=p1;
p2=p1;
p1=(struct library*)malloc(LEN);//<2F>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
}
strcpy(p1->shuhao,tshuhao);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->name,tname);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->author,tauthor);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->chuban,tchuban);//<2F><><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->kind,tkind);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p1->xcl=txcl;//<2F><><EFBFBD>Ƹ<EFBFBD><C6B8><EFBFBD>
p1->price=tprice;//<2F><><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD>
}}
if (n==0)
{ head=NULL;}
else
{
p2->next=p1;
p1->next=NULL;
fclose(fp);
}}
fp=fopen("library.txt","w");//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
fclose(fp);
fp=fopen("library.txt","a");//׷<><D7B7><EFBFBD>ļ<EFBFBD>
p=head;
for (;p!=NULL;)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8>ǵ<EFBFBD><C7B5>ļ<EFBFBD>
{
fprintf(fp,"%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",p->shuhao,p->name,p->author,p->chuban,p->kind,p->xcl,p->price);
p=p->next;
}
fclose(fp);//<2F>ر<EFBFBD><D8B1>ļ<EFBFBD>
system ("cls");
printf("\nɾ<EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> \n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>\n");
getch();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
tsgxx();
}
void chaxunts()//<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
{
FILE *fp;
char choose;
int txcl=0,n=0,k=0,i,l;
float tprice=0;
char tname[20]={'\0'},tauthor[20]={'\0'},chazhao[20]={'\0'},tchuban[20]={'\0'},
tshuhao[20]={'\0'},tkind[20]={'\0'};
if ((fp=fopen("library.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
{ system ("cls");
printf("\n<EFBFBD><EFBFBD>¼<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
getch();
tsgxx();
}
l=tjzs();//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
menu2();//<2F><><EFBFBD>ò˵<C3B2><CBB5><EFBFBD><EFBFBD><EFBFBD>
scanf("%s",chazhao);
system ("cls");
for (i=0;i<l;i++)
{ fscanf(fp,"%s%s%s%s%s%d%f",tshuhao,tname,tauthor,tchuban,tkind,&txcl,&tprice);//<2F><><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>Ϣ
if(!strcmp(chazhao,tshuhao)||!strcmp(chazhao,tname)||!strcmp(chazhao,tauthor)||!strcmp(chazhao,tkind))//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF>Ϣ
{if (k==0)
{
printf("<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD>ִ<EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
}
printf("%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",tshuhao,tname,tauthor,tchuban,tkind,txcl,tprice);
k++;
}}
if (k==0)//<2F>ļ<EFBFBD><C4BC><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޼<EFBFBD>¼
{ system ("cls");
printf("\n<EFBFBD>޷<EFBFBD><EFBFBD>ϼ<EFBFBD>¼!\n");
getch();
tsgxx();
}
fclose(fp);
getch();//<2F><><EFBFBD><EFBFBD>
tsgxx();
}
void xianshikucun()//<2F><>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
{
FILE *fp;
int xcl=0,n=0,i=0,j=0;
float price=0;
char name[20]={'\0'},author[20]={'\0'},kind[20]={'\0'},chuban[20]={'\0'},shuhao[20]={'\0'};
if ((fp=fopen("library.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
{
system ("cls");
printf("\n<EFBFBD><EFBFBD>¼<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
}
n= tjzs();
if (n==0)
{ system ("cls");
printf("\n<EFBFBD><EFBFBD><EFBFBD>κμ<EFBFBD>¼!");
}
fp=fopen("library.txt","r");//<2F><><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD>ļ<EFBFBD>
system ("cls");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
for (i=0;i<n;i++)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
{
fscanf(fp,"%s%s%s%s%s%d%f",shuhao,name,author,chuban,kind,&xcl,&price);
printf("%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",shuhao,name,author,chuban,kind,xcl,price);
}
fclose(fp);
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
getch();//<2F><><EFBFBD><EFBFBD>
tsgxx();
}
void menu3() //<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>˵<EFBFBD>
{ system ("cls");
printf("*****************************************************");
printf("\n\n 1.<2E><><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>\n\n");
printf("\n\n 2.<2E><><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>\n\n");
printf("\n\n 3.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
printf("\n\n 4.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>\n\n");
printf("\n\n <20><EFBFBD><EBB0B4>ѡ<EFBFBD>񣬻س<F1A3ACBB>ȷ<EFBFBD><C8B7>\n");
printf("****************************************************");
return ;
}
void jieshuxitong()//<2F><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>
{ void jieshu();
void huanshu();
void duzheyilang();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char choose;
menu3();
scanf("%c",&choose);
scanf("%c",&choose);//ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
for (;;)
switch(choose)//<2F><><EFBFBD>ú<EFBFBD><C3BA><EFBFBD>
{ case '1':jieshu();break;
case '2':huanshu();break;
case '3':duzheyilang();break;
case '4':main1();break;
}}
void jieshu()//<2F><><EFBFBD><EFBFBD><E9BAAF>
{
FILE *fp,*fp3;
struct library *head=NULL;
struct library *p,*p1,*p2;
int txcl=0,i,loop,zhenghao=0,n=0,k=0,t=0,flag=0;
float tprice=0;
char tname[20]={'\0'},tauthor[20]={'\0'},tchuban[20]={'\0'},tkind[20]={'\0'},tshuhao[20]={'\0'},
ttname[20]={'\0'},mingzi[20]={'\0'},riqi[20]={'\0'},zname[20]={'\0'};
char hitkey=0;
system ("cls");
{
if ((fp=fopen("library.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
{
system ("cls");
printf("\n ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD>޿<EFBFBD><DEBF><EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>!");
getch();
exit (0);
}
else{{
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
scanf("%s",zname);
k= tjzs();//ͳ<><CDB3>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
for (i=0;i<k;i++)//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><E6B4A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
fscanf(fp,"%s%s%s%s%s%d%f",tshuhao,tname,tauthor,tchuban,tkind,&txcl,&tprice);
n++;
if (n==1)
{ p1=p2=(struct library*)malloc(LEN);
head=p1;
}
else
{ p2->next=p1;
p2=p1;
p1=(struct library*)malloc(LEN);//<2F>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
}
strcpy(p1->shuhao,tshuhao);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->name,tname);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->author,tauthor);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->chuban,tchuban);//<2F><><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->kind,tkind);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
p1->xcl=txcl;//<2F><><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>
p1->price=tprice;//<2F><><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD>
}
if (n==0)
head=NULL;
else
{
p2->next=p1;
p1->next=NULL;
fclose(fp);
}}}
p=head;
for (;p!=NULL;)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
if(!(strcmp(p->name,zname)))//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬ
{flag=1;//<2F><><EFBFBD><EFBFBD>ȡ1
loop=p->xcl;//<2F>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>1
(p->xcl)--;}
p=p->next;
}
if(flag&&(loop>0))//<2F><><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0
{ fp=fopen("library.txt","w");
fclose(fp);
fp=fopen("library.txt","a");
p=head;
for (;p!=NULL;)
{
fprintf(fp,"%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",p->shuhao,p->name,p->author,p->chuban,p->kind,p->xcl,p->price);
p=p->next;
}
free(p);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8><EFBFBD><EFBFBD>ļ<EFBFBD>
fclose(fp);}
if(flag&&(loop>0))//<2F><><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0
{{
if ((fp3=fopen("reader.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
{ fp3=fopen("reader.txt","w");//<2F><><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD>ļ<EFBFBD>
fclose(fp3);
}
fp3=fopen("reader.txt","a");//<2F>Ը<EFBFBD><D4B8>ӵķ<D3B5>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
}
{{ if (n!=0)
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ:\n ֤<><D6A4> <20><><EFBFBD><EFBFBD> <20><EFBFBD><E9BBB9><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");//¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
scanf("%d %s %s %s",&zhenghao,&mingzi[20],&riqi[20],&zname[20]);
fprintf(fp3,"\n%-8d%-23s%-18s%-10s\n",zhenghao,&mingzi[20],&riqi[20],&zname[20]);
fp=fopen("library.txt","w");//ɾ<><C9BE>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>Ϣ
fclose(fp);
fp=fopen("library.txt","a");//<2F><><EFBFBD><EFBFBD>׷<EFBFBD><D7B7><EFBFBD><EFBFBD>Ϣ
p=head;
for (;p!=NULL;)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
{
fprintf(fp,"%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",p->shuhao,p->name,p->author,p->chuban,p->kind,p->xcl,p->price);
p=p->next;
}
fclose(fp);
fclose(fp3);
printf("<EFBFBD>ɹ<EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
getch();//<2F><><EFBFBD><EFBFBD>
jieshuxitong();//<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>ϵͳ
}}
jieshuxitong();//<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>ϵͳ
}
else
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѱ<EFBFBD><D1B1><EFBFBD><EFBFBD><EFBFBD>
getch();//<2F><><EFBFBD><EFBFBD>
jieshuxitong();//<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>ϵͳ
}}
void huanshu()//<2F><><EFBFBD><EFBFBD><E9BAAF>
{FILE *fp,*fp3;
struct reader *head=NULL;
struct reader *p,*p1,*p2;
struct library *lhead1=NULL;
struct library *zp1,*lp1,*lp2;
int txcl=0,i;
float tprice=0;
char tname[20]={'\0'},tauthor[20]={'\0'},tkind[20]={'\0'},
tchuban[20]={'\0'},ttname[20]={'\0'},tshuhao[20]={'\0'};
int ttzhenghao=0,tzhenghao=0,n=0,k=0,t=0,flag=0;
char tmingzi[20]={'\0'},triqi[20]={'\0'},tzname[20]={'\0'},ttzname[20]={'\0'};
char hitkey=0;
system ("cls");
{
if ((fp=fopen("reader.txt","r"))==NULL)//<2F><><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܻ<EFBFBD><DCBB><EFBFBD>
{
system ("cls");
printf("\n <20><><EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>!");
getch();
exit (0);
}
else
{{
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD>ź<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
scanf("%d %s",&ttzhenghao,ttzname);//<2F><><EFBFBD><EFBFBD><EBBBB9>֤<EFBFBD>ź<EFBFBD><C5BA><EFBFBD><EFBFBD><EFBFBD>
k=tjdzzs();//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
for (i=0;i<k;i++)//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>Ϣ
{
fscanf(fp,"%d%s%s%s\n ",&tzhenghao,tmingzi,triqi,tzname);
if((ttzhenghao==tzhenghao)&&!strcmp(ttzname,tzname))//<2F><><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD><DAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ1
flag=1;
}
fclose(fp);
fp=fopen("reader.txt","r");//<2F>򿪶<EFBFBD><F2BFAAB6><EFBFBD><EFBFBD>ļ<EFBFBD>
if(flag)
{
for (i=0;i<k;i++)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>
{
fscanf(fp,"%d%s%s%s\n ",&tzhenghao,tmingzi,triqi,tzname);//<2F><>ȡ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>Ϣ
if(!((ttzhenghao==tzhenghao)&&!strcmp(ttzname,tzname)))
{ n++;
if (n==1)
{ p1=p2=(struct reader*)malloc(LEN1);//<2F>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
head=p1;
}
else
{ p2->next=p1;
p2=p1;
p1=(struct reader*)malloc(LEN1);//<2F>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
}
p1->zhenghao=tzhenghao;//<2F><><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>
strcpy(p1->mingzi,tmingzi);//<2F><><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->riqi,triqi);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(p1->zname,tzname);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}}
if (n==0)
head=NULL;
else
{
p2->next=p1;
p1->next=NULL;
fclose(fp);
}
fp=fopen("reader.txt","w");//<2F><><EFBFBD>ն<EFBFBD><D5B6><EFBFBD><EFBFBD>ļ<EFBFBD>
fclose(fp);
fp=fopen("reader.txt","a");//׷<><D7B7><EFBFBD><EFBFBD>Ϣ
p=head;
for (;p!=NULL;)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8>Ƕ<EFBFBD><C7B6><EFBFBD><EFBFBD>ļ<EFBFBD>
{
fprintf(fp,"\n%-8d%-23s%-18s%-10s\n",p->zhenghao,p->mingzi,p->riqi,p->zname);
p=p->next;
}
free(p);
fclose(fp);
}}}}
if(flag)//<2F><><EFBFBD><EFBFBD>Ϊ1<CEAA><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ
{{
{printf("ȷ<EFBFBD>ϻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD>!");
for (;hitkey!=13&&hitkey!=27;)
hitkey=getch();
if (hitkey==13)
printf("<EFBFBD>ɹ<EFBFBD>!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
n=0;flag=0;
fp3=fopen("library.txt","r");//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
k=tjzs();//<2F><>ȡͼ<C8A1><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
for (i=0;i<k;i++)//<2F><>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>
{
fscanf(fp3,"%s%s%s%s%s%d%f",tshuhao,tname,tauthor,tchuban,tkind,&txcl,&tprice);//<2F><>ȡ<EFBFBD><C8A1>Ϣ
n++;
if (n==1)
{ lp1=lp2=(struct library*)malloc(LEN);//<2F>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
lhead1=lp1;
}
else
{ lp2->next=lp1;
lp2=lp1;
lp1=(struct library*)malloc(LEN);//<2F>½<EFBFBD><C2BD><EFBFBD><EFBFBD><EFBFBD>
}
strcpy(lp1->shuhao,tshuhao);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(lp1->name,tname);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(lp1->author,tauthor);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
strcpy(lp1->chuban,tchuban);//<2F><><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD><EFBFBD><EFBFBD>
strcpy(lp1->kind,tkind);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
lp1->xcl=txcl; //<2F><><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>
lp1->price=tprice;//<2F><><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD>
}
if (n==0)
{ lhead1=NULL;}
else
{
lp2->next=lp1;
lp1->next=NULL;
fclose(fp3);
}}}
zp1=lhead1;
for (;zp1!=NULL;)
{
if(!(strcmp(zp1->name,ttzname)))//Ѱ<><D1B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬ
++(zp1->xcl);//<2F>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>1
zp1=zp1->next;
}
fp3=fopen("library.txt","w");//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
fclose(fp);
fp3=fopen("library.txt","a");//׷<><D7B7><EFBFBD><EFBFBD>Ϣ
zp1=lhead1;
for (;zp1!=NULL;)//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
{
fprintf(fp3,"%-8s%-9s%-14s%-16s%-18s%-7d%-8.2f\n",
zp1->shuhao,zp1->name,zp1->author,zp1->chuban,zp1->kind,zp1->xcl,zp1->price);
zp1=zp1->next;
}
fclose(fp3);
getch();//<2F><><EFBFBD><EFBFBD>
jieshuxitong();//<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>ϵͳ
}
else
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD>Ϣ!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
getch();//<2F><><EFBFBD><EFBFBD>
jieshuxitong();//<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>ϵͳ
}
void duzheyilang()//<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
FILE *fp;
int zhenghao=0,xcl=0,n=0,i=0,j=0;
char mingzi[20]={'\0'},riqi[20]={'\0'},zname[20]={'\0'};
if ((fp=fopen("reader.txt","r"))==NULL)//<2F>򿪶<EFBFBD><F2BFAAB6><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
{
system ("cls");
printf("\n<EFBFBD><EFBFBD>¼<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
}
n=tjdzzs();
if (n==0)
{ system ("cls");
printf("\n<EFBFBD><EFBFBD><EFBFBD>κμ<EFBFBD>¼!");
}
fp=fopen("reader.txt","r");
system ("cls");
printf("\n֤<EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
for (i=0;i<n;i++)//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>Ϣ
{
fscanf(fp,"%d%s%s%s\n ",&zhenghao,mingzi,riqi,zname);
printf("\n%-8d%-23s%-18s%-10s\n", zhenghao,mingzi,riqi,zname);
}
fclose(fp);
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
getch();//<2F><><EFBFBD><EFBFBD>
jieshuxitong();//<2F><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>ϵͳ
}
void main()//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
void main1();
main1();
}