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

正文內(nèi)容

c圖書(shū)管理系統(tǒng)代碼-展示頁(yè)

2025-02-19 06:47本頁(yè)面
  

【正文】 return NULL。 r++。book[i]。book[i].gettag()==0) { if(r==0) coutsetw(6)編 號(hào) setw(18)書(shū)名 setw(10)作者 setw(10)出版社 setw(10)存量 endl。i++) if(strcmp(book[i].getname(),a)==0 amp。 for(int i=0。 } Book *query2(char a[]) {//按書(shū)名查找圖書(shū) Book *e。book[i]。amp。i=top。 } return 0。 book[top].addbook(n,na,aa,ca,oa)。 } int addbook(int n,char *na,char *aa,char *ca,int oa) {//增加圖書(shū) Book *p=query1(n)。 } ()。 top++。b,sizeof(b))。 fstream file(,ios::in)。 //圖書(shū)記錄 public: BDatabase() {//構(gòu)造函數(shù),將 book[]中 Book b。 class BDatabase {//圖書(shū)庫(kù)類,實(shí)現(xiàn)對(duì)圖書(shū)的維護(hù),查找,刪除等 private: int top。 } void disp() {//輸出圖書(shū) coutsetw(6)nosetw(18)namesetw(10)authorsetw(10)cbssetw(10)onshelfendl。 } return 0。 } int borrowbook() {//借書(shū)操作 if (onshelf0) { onshelf。 strcpy(cbs,ca)。 strcpy(name,na)。 } void addbook(int n,char *na,char *aa,char *ca,int oa) {//增加圖書(shū) tag=0。 } void setonshelf(int oa) { onshelf=oa。 } int gettag() {//獲取刪除標(biāo)記 return tag。 } char *getcbsname() {//獲取出版社名 return cbs。} char *getname() {//獲取書(shū)名 return name。 //出版社 int onshelf。 //書(shū)名 char author[20]。 //刪除標(biāo)記 1:已刪 0:未刪 int no。 //最多的圖書(shū)數(shù) const int Maxbor=5。 include include include include include const int Maxr=100 。//最多的讀者數(shù) const int Maxb=100。 //每位讀者最多借的書(shū) class Book {//圖書(shū)類,實(shí)現(xiàn)對(duì)圖書(shū)的描述,圖書(shū)的編號(hào),書(shū)名,借出,還入等功能 private: int tag。 //圖書(shū)編號(hào) char name[20]。//作者 char cbs[20]。 //是否再架 1:再架 2:已借 public: Book(){。 } char *getauthorname() {//獲取作者 名 return author。 } int getno() {//獲取圖書(shū)編號(hào) return no。 } void setname(char na[]) {//設(shè)置書(shū)名 strcpy(name,na)。 } void delbook() {//刪除圖書(shū) tag=1。 no=n。 strcpy(author,aa)。 onshelf=oa。 return 1。 } void retbook() {//還書(shū)操作 onshelf++。 } }。 //圖書(shū)記錄指針 Book book[Maxb]。 top=1。 while (1) { ((char *)amp。 if (!file) break。 book[top]=b。 } void clear() {//全刪 top=1。 if (NULL==p) { top++。 return 1。 } Book *query1(int bookid) {//按編號(hào)查找圖書(shū) for(int i=0。i++) if(book[i].getno()==bookid amp。book[i].gettag()==0) { return amp。 } return NULL。 int r=0。i=top。amp。 e=amp。 edisp()。 } if(r==0) cout找不到該書(shū) !endl。 } Book *query3(char a[]) {//按作者查找圖書(shū) Book *e。 for(int i=0。i++) if(strcmp(book[i].getauthorname(),a)==0 amp。book[i].gettag()==0) { if(r==0) coutsetw(6)編號(hào) setw(18)書(shū)名 setw(10)作者 setw(10)出版社 setw(10)存量 endl。book[i]。 r++。 return NULL。 int r=0。i=top。amp。 e=amp。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1