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

正文內(nèi)容

3768t旅店管理系統(tǒng)課程設(shè)計(jì)報(bào)告(留存版)

  

【正文】 問體,把int類型變量改為string類型,但是string類型不能在switch語(yǔ)句中應(yīng)用,所以用了if 選擇語(yǔ)句。void name_demand() //按客人姓名查詢函數(shù){ string demand_name=0。當(dāng)文件里沒有信息時(shí),系統(tǒng)不會(huì)進(jìn)入歡迎界面,而是自動(dòng)運(yùn)行客房信息錄入界面。 //插到p2指向的結(jié)點(diǎn)之后 p0next=p1。 } else //退房 年 等于 入住 年 sum=onin。void info_modify() //信息修改函數(shù){ municate *M,*ass。 string AA=0。讓我們?cè)谧稣n程設(shè)計(jì)時(shí)對(duì)整體的把握得以提高。 cout\n ☆ ☆。 int i=0。 exit(0)。getchar()。 //調(diào)用 退出系統(tǒng)函數(shù) if(x==4) close_puter()。 cout\n☆ ☆。 cout ※ 7 客房信息修改 ※ 8 客房信息插入 ※ 9 退出本系統(tǒng)\n。 //客房信息插入函數(shù) else if(main_select==9) exit_system()。 //使head指向第一個(gè)結(jié)點(diǎn) if(p1==head) head=p1next。 } else { p1next=p0。i++) p1intime[i]=0。 p1ID_num=39。 cout 請(qǐng)輸入客房號(hào):。 while(!kbhit())。 p1ID_num=0。 } p2next=NULL。}客房信息錄入include void room_infor_in() //客房信息錄入功能函數(shù){ string a=0。 cout\n\n 客房號(hào) 客房類型 客房?jī)r(jià)格\n。 p=pnext。 cout\n 客房號(hào)碼 客房類型 客房?jī)r(jià)格 使用狀態(tài)\n。(rempty==0)) register_guest_info(r)。 coutsetw(8)xroom_numsetw(10)xguest_namesetw(10)xID_numsetw(10)xintime[0]xintime[1]xintime[2]setw(10)xoutime[0]xoutime[1]xoutime[2] setw(8)xprepayendl。 if(y==a) register_info()。break。 cout 你選擇了客人退房結(jié)算功能,請(qǐng)輸入房間號(hào):。 coutsetw(8)croom_numsetw(8)ctypesetw(14)cprice。 save_hotel()。 p=pnext。 if(x==1) room_state_demand()。//調(diào)用 查詢空客房函數(shù) if(x==2) exact_room_state()。 cout\n\n 請(qǐng)輸入你要查詢的客房號(hào): 。 cout\n 是否繼續(xù)精確查詢(y/n)? 。 thank_face()。 p=headp。 } } demand_display(p)。 if(pnext==NULLamp。 p=headp。 if(pnext=NULLamp。 cout\n 3按客房號(hào)碼查詢 4返回上一層菜單\n。 p=pnext。amp。 thank_face()。 cout\n 請(qǐng)輸入: 。 cout********************************************************************\n 。 cout 客房號(hào) 客房類型 客房?jī)r(jià)格 使用狀態(tài) 入住人員\n。i3。 coutsetw(8)coutime[0]coutime[1]coutime[2] 。 } else //退房 年 等于 入住 年 sum=onin。imonth。 } } string a=0。 cinxprepay。(rempty==1)) { cout\n 該房間正在使用,請(qǐng)輸入其它房間!\n。 string reg=0。 main_third_serve_display()。 continue。i++) infilepoutime[i]。 p1ID_num=0。 getchar()。 ifstream infile(,ios::in)。 hotel_guest *T。 cinp1room_nump1typep1price。 p1ID_num=39。 //使p2指向剛才p1指向的結(jié)點(diǎn) p1=p1next。 getchar()。 //調(diào)用 客房信息瀏覽函數(shù) else if(main_select==5) info_demand()。 cout\n * * * 你 有 以 下 權(quán) 限 * * *\n\n。 } }}void main_second_serve_display() //服務(wù)人員系統(tǒng)界面顯示函數(shù){ system(cls)。B: cinx。 cout 中國(guó) cout\n\n 你的輸入次數(shù)已經(jīng)超過限制,你沒有權(quán)力訪問本系統(tǒng)!。 system(cls)。//調(diào)用 主界面顯示函數(shù)}void main_first_display() // 主界面顯示函數(shù){ system(cls)。只好用if 選擇語(yǔ)句實(shí)現(xiàn)功能。 D=test_municate()。 while(p!=NULL) { if(pname!=wname) //如果輸入的名字和要查詢的名字不相同 { p=pnext。 if (uintime[0]!=uoutime[0])//退房 年 不等于 入住 年 { for(int i=uintime[0]。 (p1next!=NULL)) p2=p1。 2.為了判斷房間是否為空,在結(jié)構(gòu)體中設(shè)置了一個(gè)變量,在房間錄入時(shí)讓其一直等于零,在客人入住登記時(shí),讓其等于壹。getchar()。注:我所用的編譯器可以不用包含頭文件include,也可以用DOS命令。學(xué)生通訊系統(tǒng)本系統(tǒng)的有學(xué)生信息的錄入、瀏覽、統(tǒng)計(jì)、刪除、修改等功能。(2)培養(yǎng)自己獨(dú)立分析問題、解決問題、查閱資料以及自學(xué)能力,以適應(yīng)計(jì)算機(jī)產(chǎn)業(yè)日新月異發(fā)展的形勢(shì)。主要的功能有客房的信息錄入、客人入住登記、客房信息可以插入、修改、和刪除、客房信息查詢、瀏覽、退出本系統(tǒng)、關(guān)閉計(jì)算機(jī)等功能。身份選擇界面本系統(tǒng)可以供客人和服務(wù)人員使用,但不同身份的人有不同的權(quán)限。 } cout\n 按回車鍵繼續(xù)...。 } } demand_display(p)。 //指向要插入的結(jié)點(diǎn)若原來的鏈表是空表,p0指向的結(jié)點(diǎn)作為頭結(jié)點(diǎn) head=p0。 //返回head指針4.計(jì)算輸入的時(shí)間是本年的第幾天(帶回計(jì)算的天數(shù))int which_day(hotel_guest *u) { int sum=0,j=0,in=0,on=0。 p=headp。 else cout 沒有該學(xué)生的信息!\n。解決: 把int 類型改為string 類型。string main_select=0。 cout 按回車鍵繼續(xù)...。 goto A。 cout * 祝 您 的 旅 途 愉 快 *\n\n\n\n\n。 //調(diào)用 客人選擇函數(shù)}void main_guest_choose() //客人選擇函數(shù){ cout\n 請(qǐng)輸入: 。 while(!kbhit())。 getchar()。 //調(diào)用 入住登記函數(shù) else if(main_select==3) check_out()。 cout 你的輸入次數(shù)已經(jīng)超過限制,你沒有權(quán)力訪問本程序!\n。} //使p0指向的結(jié)點(diǎn)作為頭結(jié)點(diǎn) else { while((p0room_nump1room_num) amp。 p1empty=0。 p2=p1。 p2next=NULL。 } break。 cout\n\n\n\n\n\n\n\n\n\n\n\n\n\n。 p1=new hotel_guest。i++) infilepintime[i]。 if (y==a) break。//客人信息保存函數(shù) cout\n\n 按回車鍵返回主菜單... 。 p=pnext。 r=headp。 cinxguest_namexID_num。 break。 return y。iuoutime[0]。 cout 客人姓名 身份證號(hào) 入住時(shí)間 當(dāng)前時(shí)間 預(yù)付費(fèi)用\n。i3。 } }}客房信息瀏覽include void info_scan() //客房信息瀏覽函數(shù) { system(cls)。 cout\n\n 你選擇了信息查詢,請(qǐng)選擇條件:\n。 cout 1查詢空閑客房 2精確查詢客房狀態(tài)\n。 } cout\n 按回車鍵繼續(xù)...。 break。 while(p!=NULL) {coutsetw(8)proom_numsetw(9)ptypesetw(15)pprice。 cout\n\n 你選擇了客人信息查詢,請(qǐng)輸入你的條件:\n。guest_name: cout\n 請(qǐng)輸入要查詢者的姓名: 。 goto ID_num。 goto room_num。ID_num: cout\n 請(qǐng)輸入要查詢者的身份證號(hào): 。 //按身份證號(hào)碼查詢 if(kerenchaxun==3) room_num_demand()。 cout\n\n\n\n * * 感 謝 使 用 * *\n\n。 //感謝界面 room_state_demand()。 while(p!=NULLamp。 //調(diào)用 信息查詢函數(shù) else { cout 你的輸入有誤!請(qǐng)重新輸入: 。 //貴賓系統(tǒng)界面顯示函數(shù) if(figure==2) //若是服務(wù)人員,返回客人主菜單 main_third_serve_display()。 getchar()。) { cout\n 是否繼續(xù)(y/n)? 。 cout\n 結(jié)算完成,剩余金額為: (cprepaytotal*cprice)endl。) { if(proom_num!=roomamp。 } } n=n+day。 } return x。 for(。 goto H。 } int i=0。}void save_guest() //客人信息保存函數(shù){ ofstream outfile(,ios::out)。 cout 客房號(hào) 客房類型 客房?jī)r(jià)格 使用狀態(tài)\n。 cout\n\n\n
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1