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

正文內(nèi)容

c數(shù)據(jù)庫管理系統(tǒng)(編輯修改稿)

2024-10-11 11:32 本頁面
 

【文章內(nèi)容簡介】 break。 case 39。339。: cout 輸入讀者編號 :。 cin readerid。 r=query(readerid)。 if (r==NULL) { cout 該讀者不存在 endl。 break。 } rdelreader()。 break。 case 39。439。: cout 讀入讀者編號 :endl。 cin readerid。 r=query(readerid)。 if (r==NULL) { cout 該讀者不存在 endl。 break。 } rdisp()。 break。 case 39。539。: disp()。 break。 case 39。639。: clear()。 break。 default:cout輸入錯誤,請從新輸入 :。 } } } class Book { private: int tag。 //刪除標(biāo)記 1:已借 0:未借 int no。 //圖書編號 char name[10]。 //圖書名 許四平 第 9 頁 2020101211 public: Book() {} char *getname() {return name。} //獲取姓名 int gettag() {return tag。} //獲取刪除標(biāo)記 int getno() {return no。} void setname(char na[]) { strcpy(name,na)。 } void delbook(){ tag=1。 }//設(shè)置刪除標(biāo)記 1:已借 0:未借 int addbook(int n,char *na) { tag=0。 no=n。 strcpy(name,na)。 return 0。 } int borrowbook() { if (tag==1) return 0。 else return 1。 } int retbook() { tag=0。 return 0。 } void disp()//讀出讀者信息 { cout setw(5) no setw(10) name。 if (tag==0) coutsetw(10)未借出 endl。 else coutsetw(10)已借出 endl。 } }。 許四平 第 10 頁 2020101211 class BDatabase { private: int top。 Book book[Maxb]。 public: BDatabase() { Book b。 top=1。 fstream file(,ios::in)。//打開一個輸入文件 while (1) { ((char *)amp。b,sizeof(b))。 if (!file)break。 top++。 book[top]=b。 } ()。 //關(guān)閉 } void clear() { top=1。 } int addbook(int n,char *na) { Book *p=query(n)。 if (p==NULL) { top++。 book[top].addbook(n,na)。 return 1。 } return 0。 } Book *query(int bookid)//按編號查找 { for (int i=0。i=top。i++) if (book[i].getno()==bookid ) { return amp。book[i]。 } return NULL。 許四平 第 11 頁 2020101211 } void bookdata()。//圖書庫維護(hù) void disp() { for (int i=0。i=top。i++) book[i].disp()。 } ~BDatabase()//析構(gòu)函數(shù),將 book[]寫到 { fstream file(,ios::out)。 for (int i=0。i=top。i++) ((char *)amp。book[i],sizeof(book[i]))。 ()。 } }。 void BDatabase::bookdata() { char choice。 char bname[40]。 int bookid。 Book *b。 while (choice!=39。039。) { cout \n\n\n\t\t\t圖 書 維 護(hù) endlendl。 cout \n\n\n\t\t 1 新 增 \n\n\t\t 2 更 改 \n\n\t\t 3 刪 除 \n\n\t\t 4 查 找 \n\n\t\t 5 顯 示 \n\n\t\t 6 全 刪 \n\n\t\t 0 退 出 endl。 cin choice。 switch (choice) { case 39。139。:
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1