【正文】
end number of the book:)。 getchar()。 scanf(%d,amp。 gotoxy(2,20)。(temp ))。 cprintf(Please input the ISBN of the book:)。 getchar()。 scanf(%f,amp。 gotoxy(2,16)。(temp ))。s publish time:)。 gotoxy(2,14)。(temp ))。s edition:)。 gotoxy(2,12)。(temp ))。s press:)。 gotoxy(2,10)。(temp ))。s writer:)。 gotoxy(2,8)。(temp ))。s name:)。 gotoxy(2,6)。(temp ))。s number:)。 gotoxy(2,4)。(temp ))。 cprintf(Please input the classfication of chinese library classification:)。 } clrscr()。 getch()。 } else { p2 = p2next。 flag = 1。 temp next =p1。 i++) { p1 = p1next。 for(i = 0。 printf(The number you want to insert behind:)。 p1 = p2 = head = create()。 clrscr()。 int i,ky,sum,flag = 0。}void insert(){ struct linklist* p1,*p2, *head, *temp。 printf(succeed to delete the anykey to get back to the mainmenu.)。 exit(0)。sum,2,1,fp) != 1) { printf(fail to write the .)。 if((fp = fopen(e:\\,wb)) == NULL) { printf(cannot open )。 } p1 = p1 next。(p1 binfo),sizeof(bbasic),1,fp) != 1) { clrscr()。i sum 。 if ((fp = fopen(e:\\,wb)) == NULL) { printf(cannot open )。 menu()。 } } } if (flag != 1) { printf(cannot find the book.)。 break。 sum 。 if(strcmp(find,p1 ) == 0) { p1 = p1 next。i sum 。 flag = 1。 if(strcmp(find,head ) == 0) { head = head next。 printf(Plese input the name of the book you want to Delete:)。 sum = readsum()。 FILE *fp。 char find[30]。 getch()。 } clrscr()。 menu()。 } p = p next。(p binfo),sizeof(bbasic),1,fp) != 1) { clrscr()。i sum 。 if ((fp = fopen(e:\\,wb)) == NULL) { printf(cannot open )。 scanf(%s,find)。 clrscr()。 if(ky == Key_Y) { p = head。 printf(Press Y to continue or Press anykey to back to menu.)。(p ))。 cprintf(Please input the lend number of the book:)。 getchar()。 scanf(%d,amp。 gotoxy(2,20)。(p ))。 cprintf(Please input the ISBN of the book:)。 getchar()。 scanf(%f,amp。 gotoxy(2,16)。(p ))。s publish time:)。 gotoxy(2,14)。(p ))。s edition:)。 gotoxy(2,12)。(p ))。s press:)。 gotoxy(2,10)。(p ))。s writer:)。 gotoxy(2,8)。(p ))。s name:)。 gotoxy(2,6)。(p ))。s number:)。 gotoxy(2,4)。(p ))。 cprintf(Please input the classfication of chinese library classification:)。isum。 scanf(%s,find)。 clrscr()。 p= head = create()。 int i,ky,sum。}void modify(){ struct linklist* p,*head。 fclose(fp)。(p2 binfo),sizeof(bbasic),1,fp) != 1) { printf(cannot save the data.)。 p2 next = p1。 i++) { p2 = p1。 } for (i = 0。 head = p2 = p1。 sum = readsum()。 struct linklist *head, *p1, *p2。 menu()。 } }while(ky != Key_N)。linfo,sizeof(linfo),1,fp) != 1) { clrscr()。 ky = key()。 gotoxy(10,20)。 scanf(%s, amp。 gotoxy(2,12)。 scanf(%s, amp。 gotoxy(2,10)。 scanf(%s, amp。 cprintf(Please input the borrower39。)。 cprintf(Please input the pany of the borrower:)。)。s name:)。 gotoxy(2,4)。 scanf(%s,amp。 cprintf(Please input the lend book39。 } do { clrscr()。 if((fp = fopen(e:\\,ab)) == NULL) { printf(cannot open the addborrow data.)。 textcolor(WHITE)。 blend linfo。}void addborrow() /*增加圖書借閱信息*/{ int ky。 fclose(fp)。 printf(cannot save the data.)。 if(fwrite(amp。 cprintf(Press N(n) to finish add book or Press any key to add more book.)。)。 cprintf(Please input the bill number:)。)。 cprintf(Please input the real money of buy the book:)。)。 cprintf(Please input the price:)。)。 cprintf(Please input the number of the book buy:)。)。s buy time:)。 gotoxy(2,6)。 scanf(%s,amp。 cprintf(Please input the book39。)。s name:)。 gotoxy(2,2)。 exit(0)。 clrscr()。 textbackground(BLUE)。 FILE *fp。}/* 中圖法分類號(hào)、(要考慮多個(gè)作者情況)、出版社、出版日期、ISBN、版次、定價(jià)、館藏?cái)?shù)、借閱數(shù)等。 fclose(fp)。 exit(0)。sum,2,1,fp) != 1) { printf(fail to write the .)。 exit(0)。 if ((fp = fopen(e:\\,wb)) == NULL) { printf(cannot save the sum of the book.)。 } }while(ky != Key_N)。binfo,sizeof(bbasic),1,fp) != 1) { clrscr()。 sum++。 cprintf(Press N(n) to finish add book or Press any key to add more book.)。 getchar()。 scanf(%d,amp。 gotoxy(2,22)。)。 cprintf(Please input the count of books:)。 getchar()。 scanf(%s,amp。 gotoxy(2,18)。)。 cprintf(Please input the price:)。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 cprintf(Please input the book39。 getchar()。 scanf(%s,amp。 gotoxy(2,2)。 if ((fp = fopen(e:\\,ab)) == NULL) { printf(cannot write the )。sum,2,1,fp)。 clrscr()。 textbackground(BLUE)。 FILE *fp。break。break。break。break。break。 y=choose(7,16)。 textbackground(BLUE)。 textbackground(BLUE)。 gotoxy(35,22)。 cprintf(The Library Managemnt Program)。 textcolor(RED)。 cprintf(Back)。 cprintf(Add Borrow info)。 cprintf(Add Purchase info)。 textbackground(BLUE)。 textbackground(RED)。 _window()。exit(0)。 case 19:exit(1)。 case 16:sta()。 case 13:search()