【正文】
題目: “程序設(shè)計(jì)方法課程設(shè)計(jì)”論文二、引言C語言作為面向結(jié)構(gòu)的高級程序設(shè)計(jì)語言,有著強(qiáng)大的編程功能。本次試驗(yàn)課題“設(shè)計(jì)圖書館管理系統(tǒng)”充分的發(fā)揮了C語言的功能特點(diǎn),很好的鍛煉了學(xué)生學(xué)習(xí)應(yīng)用C語言的能力,這對今后從事軟件開發(fā)、研究和應(yīng)用都有很大的幫助。 四、正文 需求分析 (1)能進(jìn)行簡單的圖書館管理功能操作。退出系統(tǒng)借閱是否借閱這本書?需求框圖繼續(xù)退出系統(tǒng)是否繼續(xù)錄入?查詢結(jié)果圖書館管理系統(tǒng)統(tǒng)計(jì)每種書的個(gè)數(shù)返回圖書館信息系統(tǒng)按作者查詢按書名查詢按書號(hào)查詢錄入作者錄入數(shù)量錄入書名圖書統(tǒng)計(jì)圖書查詢系統(tǒng)圖書錄入系統(tǒng)返回信息系統(tǒng)主菜單退出圖書館管理系統(tǒng)進(jìn)入圖書館信息系統(tǒng)錄入書號(hào)設(shè)計(jì)分析 (1)定義book結(jié)構(gòu)體,用來儲(chǔ)存圖書的信息(包括書號(hào)、書名、作者、數(shù)量)。(5)當(dāng)選擇借閱當(dāng)前圖書時(shí)(選Y)時(shí),tamount減一。(4)函數(shù):通過調(diào)用實(shí)現(xiàn)要求的特定功能。 int amount[4]。void informationmenu()。 printf(Wele to the libeary systerm!\n\n)。 printf(Choose the key:)。 printf(\n)。 printf(\t\ to the mainmenu\n)。 printf(\n)。 printf(\t\ to the informationmenu\n)。 scanf(%c,amp。:tsgxx()。:system (cls)。}}\*定義mian1函數(shù)*void tsgxx(){ char choose。void check()。}\*主函數(shù)* void informationmenu(){ char choose。choose)。break。break。break。 }}\*定義informationmenu函數(shù)* void checkbook(){char choose。 check()。 char ch。 printf(\n\nWele to add a book!)。 fclose(fp)。 do{ printf(\n\nInput the new book:include( number。 )\n\n)。y39。y39。printf()。\039。 fp=fopen(C:\\bookin,rb)。tnum,tname,tauthor,amp。 return (n)。 char tname[20]={39。}, tauthor[20]={39。}。 } l=tjzs()。 if (choose==39。139。 } else if (choose==39。 scanf(%s,ttname)。 printf(enter the book auther:)。il。 printf(\tb