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

正文內(nèi)容

c圖書管理系統(tǒng)代碼(完整版)

2025-03-18 06:47上一頁面

下一頁面
  

【正文】 tonshelf(int oa) { onshelf=oa。 } int borrowbook() {//借書操作 if (onshelf0) { onshelf。 //圖書記錄 public: BDatabase() {//構(gòu)造函數(shù),將 book[]中 Book b。 } ()。i=top。 for(int i=0。 r++。amp。 } Book *query4(char a[]) {//按出版社查找圖書 Book *e。book[i]。i++) if(book[i].gettag()==0) book[i].disp()。 void BDatabase::bookdata() { char choice3。 Book *b。 cout\t\t\t** 示 **endl。 cinbookid。 cout請輸入新書出版社 :。 case 39。 coutsetw(6)編號 setw(18)書名 setw(10)作者 setw(10)出版社 setw(10)存量 endl。 cout請輸入新的作者 :。 } cout修改圖書成功 !。 if(b==NULL) { cout該圖書不存在,無法刪除 !endl。: cout\t\t\t** 查找 **endl。 cinbookid。 cinbname。 ciname。 disp()。 } } } class Reader {//讀者的信息描述 private: int tag。 } void setname(char na[]) {//設(shè)置姓名 strcpy(name,na)。 } void borrowbook(int bookid) {//借書操作 for(int i=0。 return 1。i++) if(borbook[i]!=0) { if(bz==0) { have=1。 //讀者記錄 public: RDatabase() {//構(gòu)造函數(shù),將 read[]中 Reader s。 } ()。 } Reader *queryid(int readerid) {//按讀者編號查找 for (int i=0。i=top。i++) read[i].disp()。 } }。039。 cout\t\t\t** 回 **endl。 cinrname。 cinreaderid。 getch()。 break。 cout\t\t\t** **endl。 break。 break。: coutsetw(10)讀者編號 setw(17)讀者姓名 setw(20)已借書編號endl。 default: break。 while(choice5!=39。 cout\t\t\t 請選擇: 。: ()。 if(NULL==r) {//按編號查找是否有該讀者 cout不存在該讀者,不能借書 !endl。 break。 cinreaderid。 break。 rretbook(bgetno())。 if(r==NULL) { cout不存在該讀者,不能還書 endl。 rborrowbook(bgetno())。 } cout請輸入要借圖書編號 :。 case 39。 switch (choice5) { case 39。) { cout\n\t\t\t**** 圖 書 管 理 系 統(tǒng) ****\n\n。 int bookid,readerid。 getch()。 rdisp()。 rdisp()。 cout\t\t\t 請選擇 :。 cout刪除成功 !endl。 case 39。 if(r==NULL) { cout該讀者不存在 ! endl。 cout添加讀者成功 !endl。 cinchoice1。 cout\t\t\t** 增 **endl。 char rname[20]。 //讀者庫信息 ~RDatabase() {//析構(gòu)函數(shù),將 read[]寫到 fstream file(,ios::out)。amp。i++) if (read[i].getno()==readeridamp。 } int addreader(int n,char *na) {//添加讀者時先查找是否存在 Reader *p=queryid(n)。 fstream file(,ios::in)。 bz++。 return 0。i++) { if (borbook[i]==0) { borbook[i]=bookid。 } void addreader(int n,char *na) {//增加讀者 tag=0。 //讀者編號 char name[10]。 break。 break。 break。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1