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

正文內(nèi)容

c++圖書管理系統(tǒng)代碼-文庫(kù)吧

2025-01-26 06:47 本頁面


【正文】 +。 } if(r==0) cout找不到該書 !endl。 return NULL。 } Book *query4(char a[]) {//按出版社查找圖書 Book *e。 int r=0。 for (int i=0。i=top。i++) if (strcmp(book[i].getcbsname(),a)==0 amp。amp。book[i].gettag()==0) { if(r==0)coutsetw(6)編號(hào) setw(18)書名 setw(10)作者setw(10)出版社 setw(10)存量 endl。 e=amp。book[i]。 edisp()。 r++。 } if(r==0) cout找不到該書 !endl。 return NULL。 } void bookdata()。 //圖書庫(kù)信息 void disp() { for(int i=0。i=top。i++) if(book[i].gettag()==0) book[i].disp()。 } ~BDatabase() {//析構(gòu)函數(shù),將 book[]寫到 fstream file(,ios::out)。 for(int i=0。i=top。i++) if(book[i].gettag()==0) ((char *)amp。book[i],sizeof(book[i]))。 ()。 } }。 void BDatabase::bookdata() { char choice3。 char bname[40]。 char auname[40]。 char ame[40]。 char ch。 int choice4。 int bookid。 int bookod。 Book *b。 while (choice3!=39。039。) { cout\n\t\t\t**圖 書 信 息 **\nendl。 cout\t\t\t** 增 **endl。 cout\t\t\t** 改 **endl。 cout\t\t\t** 除 **endl。 cout\t\t\t** 找 **endl。 cout\t\t\t** 示 **endl。 cout\t\t\t** 刪 **endl。 cout\t\t\t** 回 **endl。 cout\t\t\t 請(qǐng)選擇: 。 cinchoice3。 switch(choice3) { case 39。139。: cout請(qǐng)輸入新書編號(hào) :。 cinbookid。 b=query1(bookid)。 if(b!=NULL) { cout該編號(hào)已經(jīng)存在,不能添加 !endl。 break。 } cout請(qǐng)輸入新書書名 :。 cinbname。 cout請(qǐng)輸入新書作者名 :。 cinauname。 cout請(qǐng)輸入新書出版社 :。 ciname。 cout請(qǐng)輸入新書數(shù)量 :。 cinbookod。 addbook(bookid,bname,auname,ame,bookod)。 cout添加圖書成功 !。 getch()。 break。 case 39。239。: cout請(qǐng)輸入圖書編號(hào) :。 cinbookid。 b=query1(bookid)。 if(b==NULL) { cout該圖書不存在 ! endl。 break。 } cout該圖書的信息是: endl。 coutsetw(6)編號(hào) setw(18)書名 setw(10)作者 setw(10)出版社 setw(10)存量 endl。 bdisp()。 cout是否修改 ?( y/n ):。 cinch。 if(ch==39。y39。) { cout請(qǐng)輸入新的書名 :。 cinbname。 cout請(qǐng)輸入新的作者 :。 cinauname。 cout請(qǐng)輸入新書出版社 :。 ciname。 cout請(qǐng)輸入新的存量 :。 cinbookod。 bsetname(bname)。 bsetonshelf(bookod)。 } cout修改圖書成功 !。 getch()。 break。 case 39。339。: cout請(qǐng)輸入圖書編號(hào) :。 cinbookid。 b=query1(bookid)。 if(b==NULL) { cout該圖書不存在,無法刪除 !endl。 break。 } bdelbook()。 cout刪除成功 !。 getch()。 break。 case 39。439。: cout\t\t\t** 查找 **endl。 cout\t\t\t** **endl。 cout\t\t\t** **endl。 cout\t\t\t** **endl。 cout\t\t\t** 回 **endl。 cout\t\t\t 請(qǐng)選擇 :。 cinchoice4。 switch(choice4)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1