freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

程序設(shè)計綜合課程設(shè)計報告-圖書館管理系統(tǒng)-wenkub.com

2024-09-03 17:53 本頁面
   

【正文】 case 5: exit(1)。 case 3: bau_search()。 switch(bsc) { case 1: bnu_search()。 int bsc。 cout\t\t\t※ ※ \n。 程序設(shè)計綜合課程設(shè)計 41 cout\t\t\t※ ※ \n。 cout\t\t\t※ ※ \n。 //system(color f2)。 case 5: exit(1)。 case 3: bau_search()。 switch(bsc) { 程序設(shè)計綜合課程設(shè)計 40 case 1: bnu_search()。 int bsc。 cout\t\t\t※ ※ \n。 cout\t\t\t※ ※ \n。 cout\t\t\t※ ※ \n。 //system(color f2)。 break。 case 5: system(cls)。 case 3: bsearch_menu()。 case 2: cout\n\t請輸入您欲歸還的圖書書號 : 。 switch(choice) { case 1: cout\n\t請輸入您欲借閱的圖書書號 : 。 程序設(shè)計綜合課程設(shè)計 38 cout\t ※※※※※※※※※※※※※※※※※※※※※※※※※※※※ \n。 cout\t ※ ※ \n。 cout\t ※ ※ \n。 //system(color f9)。 break。 break。 case 8: //查看所有讀者 ()。 break。 admin_menu()。 break。 case 3: //刪除圖書 delBook()。 break。 choice: cinchoice。 cout\t ※ ※ \n。 cout\t ※ 程序設(shè)計綜合課程設(shè)計 35 ※ \n。 cout\t ※ ※ \n。 cout\t ※ ※ \n。 goto choice。 //讀者登錄或注冊 break。 ()。 header()。 cout\t ※ ※ \n。 cout\t ※※※※※※※※※※※※※※※※※※※※※※※※※※※※ \n。 //定義讀者管理結(jié)構(gòu)體對象 rm Reader r。 return true。 cout\n\t 借書成功 !endl。 if(index1==1) { cout\n\t 對不起 ,系統(tǒng)無改讀者記錄 ,新用戶請先注冊 !。 return。 ()。 } }break。 } else { strcpy(dz,)。 ()。choi!=0) { cout\n\t 操作有誤 ,請重新選擇 (0/1)!\n。 cinchoi。 //定義一個變量等于查找到的書號 if(index=0) { if(books[index].tag==1) //已借 a=1。 //圖書狀態(tài)指標(biāo)( 1已借 2 在架) char sh[10]。 coutbooks[i].get_rname()\n。 coutbooks[i].get_bauthor()。 coutbooks[i].get_bnum()。 (10)。 (10)。 (10)。 (20)。ilength。 cout狀態(tài) 。 cout書名 。//用后面的地址將當(dāng)前的地址覆蓋 length。 } void revise(Book book,int i)//帶參的修改書籍函數(shù) {books[i].copy(book)。 } int rn_search(char *rn) //按借閱人查找書籍 { for(int i=0。 程序設(shè)計綜合課程設(shè)計 27 } int bau_search(char *bau) //按作者查找書籍 { for(int i=0。 } int bna_search(char *bna) //按書名查找書籍 { for(int i=0。 } } int bnu_search(char *bnu) //按書號查找書籍 { for(int i=0。 return 1。 } public: BookManage() //構(gòu)造函數(shù) ,讀取磁盤文件 { length=0。//使文件流與文件建立關(guān)聯(lián) ,以二進(jìn)制方式打開 while((((char *)amp。exit(1)。 //計算并返回所占字節(jié)數(shù) ()。 //定義輸出文件流 ofstream 結(jié)構(gòu)體對象 fwrite if(!fwrite) {cout文件保存失敗 !\n。 } }。} } void copy(Book m) //Book 結(jié)構(gòu)體 copy 函數(shù) { strcpy(bnum,())。} void set_rname(char *rn) //設(shè)置借閱人 {strcpy(rname,rn)。} char *get_bname() //獲得書名 {return bname。tag=0。 //狀態(tài)標(biāo)記判斷指標(biāo) (已借 /在架 ) Book() //構(gòu)造函數(shù)初始化信息 {strcpy(bnum,)。 //書號 char bname[20]。 cout\t\t\treaders[i].get_rclass()。 cout\t\t\treaders[i].get_rtel()\n。 for(int i=0。 //調(diào)用讀者結(jié)構(gòu)體設(shè)置聯(lián)系電話函數(shù) add_reader(reader)。 程序設(shè)計綜合課程設(shè)計 22 cint。 cinn。 //姓名 name char c[10]。ilength。ilength1。 return 1。 //調(diào) 用讀者結(jié)構(gòu)體 copy 函數(shù) length++。} ~ReaderManage() //析構(gòu)函數(shù) ,保存讀者文件 {saveFile()。 } (ReaderFile,ios::binary)。 ()。//使文件流與文件關(guān)聯(lián) ,以二進(jìn)制方式打開 int i=0。 //定義輸入文件流對象 fread length=0。} }。} char *get_rtel() //獲得電話 {return rtel。} //將 rn 的字符復(fù)制給 rname char * get_rname() //獲得讀者姓名 {return rname。 public: Reader() //構(gòu)造函數(shù) ,實現(xiàn)數(shù)據(jù)初始化 {strcpy(rname,)。 程序設(shè)計綜合課程設(shè)計 17 附錄 1 參考文獻(xiàn) [1]譚浩強(qiáng)《 C++程序設(shè)計》 清華大學(xué)出版社 , 2020 [2]孫輝 吳潤秀 《 C語言程序設(shè)計教程》 人民郵電出版社 , 2020 [3]溫秀梅《 C++語言程序設(shè)計教程與實驗》 清華大學(xué)出版社 , 2020 [4]梁冰《 C程序開發(fā)范例寶典》 人民郵電出版社 , 2020 程序設(shè)計綜合課程設(shè)計 18 附錄 2 源程序清單 include iostream include iomanip include string include fstream include define BookFile //將字符串 BookFile 替換原文件中的宏名稱 book define ReaderFile using namespace std。 在此次程序設(shè)計的過程中我學(xué)到很多很多的東西,不僅鞏固了以前所學(xué)過的知識,而且學(xué)到了很多在書本上所沒有學(xué)到過的內(nèi)容,加深了自己對 C語言的學(xué)習(xí)和認(rèn)識。 int index=bnu_search(sh)。 //選擇 int a。借書則輸入讀者姓名判斷是否注冊,已注冊則標(biāo)記并借書成功。包括已借和在架。 //調(diào)用讀者結(jié)構(gòu)體設(shè)置讀者姓名函數(shù) (c)。已注冊讀者登錄輸入姓名若已注冊則輸出登錄成功,否則:登錄失敗 !新用戶請先注冊 !管理員登陸只需輸入密碼,密碼正確登陸成功,否則重新輸入。 cinclassr。否則輸出 :請輸入更改后的讀者姓名 ,請輸入更改后的班級名稱 ,請輸入更改后的聯(lián)系電話 ,是否真的修改該記錄(y/n),輸入 y 修改成功,否則操作取消。 cout狀態(tài) 。 cout書名 。 輸 入 要 刪除 的 書 號輸 入 的 書 號 是 否 已經(jīng) 存 在確 認(rèn) 是 否 刪 除輸 入 Y / y刪 除 取 消刪 除 成 功對 不 起 , 系 統(tǒng) 沒有 該 圖 書 記 錄存在不存在是否 34刪除圖書流程圖 查找圖書 有四種方式,分別是按借閱者名字查找,按書號查找,按書名查找,按作者查找。 //定義變量存放修改書籍的書號 char nameb[20]。 //調(diào)用書籍結(jié)構(gòu)體 copy 函數(shù),將要添加的書添加到books[100]中 l
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1