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

正文內(nèi)容

圖書管理系統(tǒng)c課程設(shè)計(jì)報告畢業(yè)論文-在線瀏覽

2025-08-07 04:52本頁面
  

【正文】 ad[Maxr]。//讀者庫維護(hù)~RDatabase() //析構(gòu)函數(shù),將read[]}。 }//獲取姓名 int getno(){ return no。 }//獲取刪除標(biāo)記 void setname(char na[])//設(shè)置書名 void delbook(){ tag=1。//圖書庫維護(hù) ~BDatabase()//析構(gòu)函數(shù),將book[]};(2)分別利用類class Reader 、class RDatabase、class Book 、class BDatabase 定義了各自的對象Book book[Maxb]、RDatabase ReaderDB。 BDatabase BookDB。對其函數(shù)進(jìn)行調(diào)用實(shí)現(xiàn)各種功能。4.程序源代碼include iostream include iomanip include string include fstream//輸入/輸出文件流類 using namespace std。//最多的讀者 const int Maxb=100。//每位讀者最多借五本書 //讀者類,實(shí)現(xiàn)對讀者的信息的描述 class Reader { private: int tag。 //讀者編號 char name[10]。//所借圖書 public: Reader() {} char *getname() {return name。} //獲取刪除標(biāo)記 int getno() {return no。 } void delbook(){ tag=1。 no=n。 for(int i=0。i++) borbook[i]=0。iMaxbor。 return。iMaxbor。 return 1。 } void disp()//讀出讀者信息 { cout setw(5) no setw(10) name借書編號:[。iMaxbor。 cout ]endl。 //讀者類庫,實(shí)現(xiàn)建立讀者的個人資料 class RDatabase { private: int top。//讀者記錄 public: RDatabase() //構(gòu)造函數(shù),[]中 { Reader s。 fstream file(,ios::in)。s,sizeof(s))。 top++。 } ()。 } int addreader(int n,char *na)//添加讀者時先查找是否存在 { Reader *p=query(n)。 read[top].addreader(n,na)。 } return 0。i=top。amp。read[i]。 } void disp() //輸出所有讀者信息 { for (int i=0。i++) read[i].disp()。//讀者庫維護(hù) ~RDatabase() //析構(gòu)函數(shù),將read[] { fstream file(,ios::out)。i=top。read[i],sizeof(read[i]))。 } }。 char rname[20]。 Reader *r。039。 cin choice。139。 cin readerid。 cin rname。 break。239。 cin readerid。 if (r==NULL) { cout 該讀者不存在 endl。 } cout 輸入新的姓名:。 rsetname(rname)。 case 39。: cout 輸入讀者編號:。 r=query(readerid)。 break。 break。439。 cin readerid。 if (r==NULL) { cout 該讀者不存在 endl。 } rdisp()。 case 39。: disp()。 case 39。: clear()。 default:cout輸入錯誤,請從新輸入:。 } } } //圖書類,實(shí)現(xiàn)對圖書的描述,圖書的編號,書名,借出,還入等 class Book { private: int tag。//圖書編號 char name[20]。//是否再架 1:再架 2:已借 public: Book(){} char *getname() { return na
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1