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

正文內(nèi)容

c圖書(shū)管理系統(tǒng)源代碼-wenkub

2023-04-22 05:20:52 本頁(yè)面
 

【正文】 int seach_reader()。 //增加讀者函數(shù) int reader_del()。 //所借書(shū)的書(shū)名 char date[10]。 //學(xué)號(hào) char grade[10]。 //搜索書(shū)籍界面函數(shù) int seach()。 //按書(shū)號(hào)搜索書(shū)籍函數(shù) int book_pub()。 //修改書(shū)籍函數(shù) int book_out()。 //book類構(gòu)造函數(shù) int book1()。 // 總存量 int pub_time。 //借書(shū)人 int id。class reader。 //設(shè)置所借書(shū)籍書(shū)名函數(shù) int setdate(char *)。 //設(shè)置讀者學(xué)號(hào)函數(shù) int setgrade(char *)。 //獲取所借書(shū)書(shū)名函數(shù) char *getdate()。 //獲取讀者學(xué)號(hào)函數(shù) char *getgrade()。 //按讀者名字搜索讀者函數(shù) int reader_num()。 //讀者管理界面函數(shù) int reader_add()。 //性別 char book_name[50]。 //名字 int num。讀者類設(shè)計(jì):私有成員: //按出版時(shí)間搜索書(shū)籍函數(shù) int book_writer()。 //還書(shū)函數(shù) int book_name()。 //增加書(shū)籍函數(shù) int book_del()。 //價(jià)格 char publish[50]。 //借書(shū)人學(xué)號(hào) int store。 //書(shū)名 char writer[10]。:退出圖書(shū)管理系統(tǒng)。之后按照提示重新輸入讀者的信息。之后按照提示重新輸入書(shū)籍的信息。2.歸書(shū):根據(jù)借書(shū)人的學(xué)號(hào)查詢?cè)撟x者的信息,若有該讀者,則提示輸入所借書(shū)籍的編號(hào)(id),為該讀者辦理還書(shū)手續(xù),提示該書(shū)已還。 :彈出書(shū)籍管理界面,輸入所要執(zhí)行操作的號(hào)碼: (1)增加書(shū)籍:彈出注冊(cè)新書(shū)的窗口,按照提示輸入所增加書(shū)籍的信息,最后,提示用戶該書(shū)已被注冊(cè)。:彈出讀者管理界面,輸入所要執(zhí)行操作的號(hào)碼: (1)增加讀者:彈出注冊(cè)讀者的窗口,按照提示輸入所增加讀者的信息,最后,提示用戶該讀者已被注冊(cè)。:此搜索包括兩方面的搜索,書(shū)籍搜索以及讀者搜索,彈出搜索的窗口,按照提示輸入所要搜索的內(nèi)容,1為書(shū)籍搜索,2為讀者搜索:(1)搜索書(shū)籍:彈出搜索書(shū)籍的窗口,按照提示輸入所要搜索的方式,包括按1書(shū)名搜索,2書(shū)號(hào)搜索,3作者搜索,4出版社搜索,5出版時(shí)間搜索。圖書(shū)類設(shè)計(jì):私有成員:書(shū)名(name)、編號(hào)(id)、作者名(writer)、價(jià)格(price)、總存量(total)、現(xiàn)存量(store)、出版單位(publish)、出版時(shí)間(pub_time)。 //作者 char borrower[10]。 //現(xiàn)存量 int total。 //出版社public: book()。 //刪除書(shū)籍函數(shù) int book_mod()。 //按書(shū)名搜索書(shū)籍函數(shù) int book_id()。 //按作者搜索書(shū)籍函數(shù) int seach_book()。借書(shū)人的姓名(name)、性別(sex)、年級(jí)(grade)、班級(jí)(class)、學(xué)號(hào)(num)。 //學(xué)號(hào) char grade[10]。 //所借書(shū)的書(shū)名 char date[10]。 //增加讀者函數(shù) int reader_del()。 //按讀者學(xué)號(hào)搜索讀者函數(shù) int seach_reader()。 //獲取讀者年級(jí)函數(shù) char *getclas()。 //獲取借書(shū)日期函數(shù) int getavaiday()。 //設(shè)置讀者年級(jí)函數(shù) int setclas(char *)。 //設(shè)置借書(shū)日期函數(shù) int setavaiday(int)。class book{private: char name[50]。 //書(shū)號(hào) int borr_num。 //出版時(shí)間 float price。 //書(shū)籍管理界面函數(shù) int book_add()。 //借書(shū)函數(shù) int book_in()。 //按出版社搜索書(shū)籍函數(shù) int book_time()。 //主搜索界面函數(shù)}。 //年級(jí) char clas[10]。 //借書(shū)日期 int avai_days。 //刪除讀者函數(shù) int reader_mod()。 //搜索讀者界面函數(shù) char *getname()。 //獲取讀者班級(jí)函數(shù) char *getsex()。 //獲取可借天數(shù)函數(shù) int setname(char *)。 //設(shè)置讀者班級(jí)函數(shù) int setsex(char *)。 //設(shè)置可借天數(shù)函數(shù)}。 getch()。}char *reader::getgrade(){return grade。}char *reader::getdate(){return date。}int reader::setnum(int nums){num=nums。}int reader::setclas(char *classes){strcpy(clas,classes)。}int reader::setbook_name(char *book_names){strcpy(book_name,book_names)。}int reader::setavaiday(int avaiday){avai_days=avaiday。 cout * ☆★☆ 歡迎來(lái)到圖書(shū)管理系統(tǒng) ☆★☆ *\n 。 reader read。 cout * 書(shū) * endlendl。 cout * 索 * endlendl。 switch(getch()) { case39。 case39。 case39。 case39。 case39。 case39。 default:system(cls)。 }int book::book1(){ system(cls)。 cout * * endl endl。 cout * * * * * * * * * * * endl endl。:book_add()。:book_del()。:book_mod()。:return_back()。 } return 0。 cout ☆增加書(shū)籍☆ endl。nSIZE。 } fclose(bfp)。iSIZE。 break。 cout作者: 。 cout總存量: 。 cout出版社: 。 cout借書(shū)人: 。 bfp=fopen(books,wb)。books[n],sizeof(books[n]),1,bfp)。 }int book::book_del() //定義刪除書(shū)籍的函數(shù){ FILE *bfp。 if((bfp=fopen(books,rb))==0) { cout無(wú)法打開(kāi)文件. 。books[i],sizeof(books[i]),1,bfp)。 for(i=0,s=1。 cout作者: books[i].writer endl。 cout出版社: books[i].publish endl。 cout********************************************************** endl。iSIZE。 } if((bfp=fopen(books, wb))==0) { cout無(wú)法打開(kāi)文件. 。books[i],sizeof(books[i]),1,bfp)。 int i,id,s,n。 } for(i=0。 } fclose(bfp)。iSIZE。 cout價(jià)格: books[i].price endl。 cout出版時(shí)間: books[i]. pub_time endl。 cout是否確定修改該書(shū)籍(1為是,0為否): 。 do { coutendl請(qǐng)輸入一個(gè)新的書(shū)號(hào)(學(xué)號(hào)從1001開(kāi)始,但必須不同于已存在的書(shū)號(hào)):。n++) { if(books[i].id==books[n].idamp。 } } }while(books[i].id==books[n].id)。 cinbooks[i].writer。 cinbooks[i].total。 cinbooks[i].publish。 cinbooks[i].borrower。 } } } if(s==1) { cout該書(shū)不存在。iSIZE。 return 0。 cout * * * * * * * * * * *endl。 cout * 回 *endl。139。239。339。039。 cout\n錯(cuò)誤,請(qǐng)?jiān)佥斎胍槐?\n。 page_title()。 for(n=0。 if(stud[n].num==0) break。 for(i=0。n!=i) { coutendl 這個(gè)學(xué)號(hào)已經(jīng)存在.endl。 cinstud[n].name。 cinstud[n].clas。 cinstud[n].book_name。 cinstud[n].avai_days。n++) { fwrite(amp。 return 0。 cout ☆注銷讀者☆endl。i++) { fread(amp。 cinnum。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1