【正文】
fp)。 \*定義tjzs函數(shù)*}void check(){FILE *fp。 int tnum=0,ttnum=0,tamount=0,k,i,l,c。\039。\039。\039。\039。 if ((fp=fopen(C:\\bookin,rb))==NULL) { printf(\n\n\n\n\n\n\n\n\n\t\t\tfile not found!...any key to return.)。 informationtable()。 checktable()。choose)。439。 else if (choose==39。) { system (cls)。 scanf(%s,ttnum)。239。 printf(enter the book name:)。 } else if (choose==39。) { system (cls)。 scanf(%s,ttauthor)。 for (i=0。i++) { fscanf(fp,%s%s%s%s,tnum,tname,tauthor,tamount)。if(k!=0) { printf(\t\t\t\tsearch result:\n\n)。 printf(\t%s\t\t%s\t\t%s\t\t%s\n,tnum,tname,tauthor,tamount)。scanf(%c,c)。Y39。printf(\t\tThe amount now is\t%s,tamount)。 printf(\n\n\n\n\n\n\n\t\t\t\t no one match !\n)。 tsgxx()。 getch()。}\*定義check函數(shù)*void tj()char tname[20]={39。}, ttname[20]={39。}。if ((fp=fopen(C:\\bookin,rb))==NULL) { printf(\n\n\n\n\n\n\n\n\n\t\t\tfile not found!...any key to return.)。 informationtable()。 printf(enter the book name:)。for (i=0。i++) { fscanf(fp,%s%s%s%s,tnum,tname,tauthor,tamount)。if(k!=0) {printf(\t\t\t\tsearch result:\n\n)。printf(\t\t%s\t\t%s\n,tname,\tbookamount \n)。 printf(\n\n\n\n\n\n\n\t\t\t\t No one match your check!\n)。 tsgxx()。 getch()。}\*定義tj函數(shù)*測(cè)試結(jié)果圖書館管理系統(tǒng)界面如果選擇2,則退出系統(tǒng)如果選擇1,則進(jìn)入圖書信息界面進(jìn)入圖書信息系統(tǒng),選擇1開始錄入圖書。進(jìn)入圖書館管理系統(tǒng),選擇2進(jìn)入圖書查詢系統(tǒng)。以選擇1為例。并詢問是否借閱這本書(以選Y為例)。本次程序?qū)嵺`題目基于日常生活中常見的應(yīng)用圖書館管理系統(tǒng),鍛煉了學(xué)生把知識(shí)應(yīng)用于實(shí)踐的能力。它讓我提高了分析問題、解決問題、編程實(shí)踐、自主創(chuàng)新的能力,同時(shí)通過和其他同學(xué)的交流,培養(yǎng)了我的合作精神、創(chuàng)新協(xié)作意識(shí)和勇于探索