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

正文內(nèi)容

c圖書管理系統(tǒng)源代碼(更新版)

2025-07-04 14:23上一頁面

下一頁面
  

【正文】 //定義刪除讀者的函數(shù) { FILE *sfp。 sfp=fopen(students,wb)。 cout性別 : 。 break。 } fclose(sfp)。 cout ☆增加讀者☆ endl。:return_back()。:reader_del()。 cout * * * * * * * * * * *endlendl。 } int reader::reader_1() { system(cls)。 endl。 cout出版時間 : 。 cout價格 : 。amp。 cins。 cout總存量 : books[i].total endl。 coutendl請輸入書號 : 。 page_title()。 } for(i=0。 cout請問是否確定注銷此書 (1為 是 ,0 為否 ): 。 cout價格 : books[i].price endl。 } fclose(bfp)。 int i,id,s。 for(n=0。 cinbooks[n].publish。 cinbooks[n].writer。i++) { if(books[n].id==books[i].idamp。n++) { fread(amp。 } int book::book_add() //定義增加書籍的函數(shù) { FILE *bfp。break。break。 cout * * endl endl。 page_title()。539。339。139。 cout * 書 * endlendl。 cout * * * * * * * * * * * * * * * * * * * * * * * * * *\n 。 return 0。 return 0。 } char *reader::getclas() { return clas。 include include include include define SIZE 100 define AMOUNT 50 book books[SIZE]。 //設(shè)置讀者 姓名函數(shù) int setnum(int)。 //獲取讀者姓名函數(shù) int getnum()。 //可借天數(shù) public: int read1()。 class reader { private: char name[10]。 //還書函數(shù) int book_name()。 //價格 char publish[50]。 //書名 char writer[10]。 //設(shè)置讀者班級函數(shù) int setsex(char *)。 //獲取讀者班級函數(shù) char *getsex()。 //刪除讀者函數(shù) int reader_mod()。 //年級 char clas[10]。 //按作者搜索書籍函數(shù) int seach_book()。 //刪除書籍函數(shù) int book_mod()。 //現(xiàn)存量 int total。 圖書 類 設(shè)計: 私有成員: 書名 (name)、編號 (id)、作者名 (writer)、價格 (price)、總存量 (total)、現(xiàn)存量 (store)、出版單位 (publish)、出版時間 (pub_time)。 :彈出讀者管理界面,輸入所要執(zhí)行操作的號碼: ( 1)增加 讀者 :彈出注 冊讀者 的窗口, 按照提示輸入所增加 讀者 的信息, 最后,提示用戶該 讀者 已被注冊。 2.歸 書: 根據(jù)借書人的學(xué)號查詢該讀者的信息,若有該讀者, 則提示輸入所借書籍的編號( id) ,為該讀者辦理還書手續(xù),提示該書已還。之后按照提示重新輸入 讀者 的信息。 //書名 char writer[10]。 //價格 char publish[50]。 //還書函數(shù) int book_name()。 讀者 類 設(shè)計: 私有成員 : 借書人的姓名 (name)、性別 (sex)、年級( grade)、班級( class)、學(xué)號 (num)。 //所借書的書名 char date[10]。 //按讀者學(xué)號搜索讀者函數(shù) int seach_reader()。 //獲取借書日 期函數(shù) int getavaiday()。 //設(shè)置借書日期函數(shù) int setavaiday(int)。 //書號 int borr_num。 //書籍管理界面函數(shù) int book_add()。 //按出版社搜索書籍函數(shù) int book_time()。 //年級 char clas[10]。 //刪除讀者函 數(shù) int reader_mod()。 //獲取讀者班級函數(shù) char *getsex()。 //設(shè)置讀者班級函數(shù) int setsex(char *)。 getch()。 } char *reader::getdate() { return date。 } int reader::setclas(char *classes) { strcpy(clas,classes)。 } int reader::setavaiday(int avaiday) { avai_days=avaiday。 reader read。 cout * 索 * endlendl。 case39。 case39。 case39。 } int book::book1() { system(cls)。 cout * * * * * * * * * * * endl endl。:book_del()。:return_back()。 cout ☆增加書籍☆ endl。 } fclose(bfp)。 break。 cout總存量 : 。 cout借書人 : 。books[n],sizeof(books[n]),1,bfp)。 if((bfp=fopen(books,rb))==0) { cout無法打開文件 . 。 for(i=0,s=1。 cout出版社 : books[i].publish endl。iSIZE。books[i],sizeof(books[i]),1,bfp)。 } for(i=0。iSIZE。 cout出版時間 : books[i]. pub_time endl。 do { coutendl請輸入一個新的書號(學(xué)號從 1001開始,但必須不同 于已存在的書號): 。 } } }while(books[i].id==books[n].id)。 cinbooks[i].total。 cinbooks[i].borrower。iSIZE。 cout * * * * * * * * * * *endl。139。339。 cout\n錯誤,請再輸入一遍 !\n。 for(n=0。 for(i=0。 cinstud[n].name。 cinstud[n].book_name。n++) { fwrite(amp。 cout ☆注銷讀者☆ endl。 cinnum。 cout書名 : stud[i].book_nameendl。i++) stud[i]=stud[i+1]。 } fclose(sfp)。iAMOUNT。i++) { if(stud[i].num==num) { cout名字 :stud[i].nameendl。 cout********************************************************** endl。nAMOUNT。 cout年級 : 。 cout借書日期 : 。iAMOUNT。 page_title()。books[i],sizeof(books[i]),1,bfp)。 cout ☆書的信息☆ \n。 cout出版時間 : books[i]. pub_time endl。stud[l],sizeof(stud[l]),1,sfp)。 stud[l].setavaiday(avaiday)。books[s],sizeof(books[s]),1,bfp)。 for(l=0。 for(s=0。 char no[]={None}。 cout請輸入你的學(xué)號 :。 cout ☆讀者信息☆ \n。 cout可借天數(shù) : stud[i].getavaiday()endl。 cout請輸入書號 :\n。 books[n].store++。 } fclose(bfp)。stud[i],sizeof(stud[i]),1,sfp)。 int page_title()。 for(i=0。iSIZE。 cout出版時間 : books[i]. pub_time endl。 cout ☆搜書☆ \n。 } fclose(bfp)。 cout書號 : books[i].id endl。 cout讀者學(xué)號 : books[i].borr_num endl。 page_title()
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1