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

正文內(nèi)容

3768t旅店管理系統(tǒng)課程設(shè)計報告(參考版)

2024-09-09 12:02本頁面
  

【正文】 }}void demand_display(struct hotel_guest *x) //查詢時顯示函數(shù){ cout\n 你要查詢的客房的信息如下:\n。 goto room_num。amp。 while(p!=NULL) { if(proom_num!=room_number) { p=pnext。room_num: cout\n 請輸入要查詢者的房間號: 。 }}void room_num_demand() //按房間號碼查詢函數(shù){ string room_number=0。 goto ID_num。amp。 while(p!=NULL) { if(pID_num!=ID_number) { p=pnext。ID_num: cout\n 請輸入要查詢者的身份證號: 。 }}void ID_num_demand() //按身份證號查詢函數(shù){ string ID_number=0。 goto guest_name。amp。 while(p!=NULL) { if(pguest_name!=demand_name) { p=pnext。guest_name: cout\n 請輸入要查詢者的姓名: 。 }}void name_demand() //按客人姓名查詢函數(shù){ string demand_name=0。 //調(diào)用 信息查詢函數(shù) else { cout\n 你的輸入有誤!請重新輸入: 。 //按身份證號碼查詢 if(kerenchaxun==3) room_num_demand()。 if(kerenchaxun==1) name_demand()。P2: cinkerenchaxun。 cout *********************************************************************。 cout\n 1按客人姓名查詢 2按身份證號查詢。 cout\n\n 你選擇了客人信息查詢,請輸入你的條件:\n。 getchar()。 cout\n\n\n\n\n\n\n\n\n\n\n\n\n\n。 cout\n\n\n\n * * 感 謝 使 用 * *\n\n。 //感謝界面 room_state_demand()。 getchar()。 } cout\n 按回車鍵繼續(xù)...。 if(pempty==1) coutsetw(15)使用\n。 while(p!=NULL) {coutsetw(8)proom_numsetw(9)ptypesetw(15)pprice。 }}void all_room_state() //所有房間狀態(tài)查詢函數(shù){ p=headp。 else { cout你的輸入有誤!\n。 //感謝界面 room_state_demand()。 cinx。 }R2: string x=0。pnext==NULL) { cout\n 你的輸入有誤或者不存在該客房號!\n。 } while(p!=NULLamp。 break。 if(pempty==0) coutsetw(16)空閑\n。pnext!=NULL) { if(proom_num==room) { cout 客房號 客房類型 客房價格 使用狀態(tài)\n。 while(p!=NULLamp。 cinroom。R1: system(cls)。 //感謝界面 room_state_demand()。 getchar()。 } cout\n 按回車鍵繼續(xù)...。 while (p!=NULL) { if(pempty==0) coutsetw(8)proom_numsetw(9)ptypesetw(15)ppricesetw(15)空閑\n。 }}void empty_room_state() //查詢空客房函數(shù) { p=headp。 //調(diào)用 信息查詢函數(shù) else { cout 你的輸入有誤!請重新輸入: 。//調(diào)用 客房狀態(tài)精確查詢函數(shù) if(x==3) all_room_state()。 if(x==1) empty_room_state()。 string x=0。 cout ******************************************************************\n 。 cout 1查詢空閑客房 2精確查詢客房狀態(tài)\n。 cout\n 你選擇了客房狀態(tài)查詢,請輸入你的條件:\n\n。 goto YOUWU。 //貴賓系統(tǒng)界面顯示函數(shù) if(figure==2) //若是服務(wù)人員,返回客人主菜單 main_third_serve_display()。 //客房狀態(tài)查詢函數(shù)調(diào)用 if(x==2) guest_info_demand()。YOUWU: cinx。 cout\n 請輸入: 。 cout 1查詢客房狀態(tài) 2查詢客人信息 3返回主菜單\n。 cout\n\n 你選擇了信息查詢,請選擇條件:\n。}信息查詢include string kerenchaxun=0。 if(figure==1) //若是客人,返回客人主菜單 main_third_guest_display()。 getchar()。 } cout\n\n\n 按回車鍵返回主菜單...。 else coutsetw(23)使用 pguest_nameendl。 while (p!=NULL) {coutsetw(8)proom_numsetw(8)ptypesetw(8)pprice。 cout\n\n 客房統(tǒng)計信息如下:\n\n。 } }}客房信息瀏覽include void info_scan() //客房信息瀏覽函數(shù) { system(cls)。 //退房結(jié)算函數(shù)的遞歸調(diào)用 if (n==b) { if(figure==1) //若是客人,返回客人主菜單 main_third_guest_display()。 cinb。) { cout\n 是否繼續(xù)(y/n)? 。 save_guest()。 cempty=0。i++) coutime[i]=0。 for(i=0。i3。\039。\039。 cout\n 結(jié)算完成,剩余金額為: (cprepaytotal*cprice)endl。 total=which_day(c)。 cout\n 客房號碼 客房類型 客房價格\n。 coutsetw(8)pprepay。 coutsetw(8)cintime[0]cintime[1]cintime[2] 。 cout 客人姓名 身份證號 入住時間 當(dāng)前時間 預(yù)付費用\n。 //退房結(jié)算顯示函數(shù) }}void check_out_display(struct hotel_guest *c) //退房結(jié)算顯示函數(shù){ system(cls)。pempty==0) p=pnext。) { if(proom_num!=roomamp。 cinroom。 p=headp。 return sum。 } sum=(uoutime[0]uintime[0])*365+jin+on。iuoutime[0]。 on=calculate_days(uoutime[0],poutime[1],uoutime[2])。}int which_day(hotel_guest *u) //計算輸入的時間是本年的第幾天(帶回計算的天數(shù)){ int sum=0,j=0,in=0,on=0。 } } n=n+day。 case 2 : if(judge_leap_year(year)==1) n+=29。 case 4 : case 6 : case 9 : case 11 : n+=30。i++) { switch(i) { case 1 : case 3 : case 5 : case 7 : case 8 : case 10 : case 12 : n+=31。 for(int i=1。 return y。 year%100!=0 || year%400==0) y=1。 if(year%4==0 amp。 } return x。 else if(n==a) main_third_serve_display()。 cina。 for(。 continue。 break。 break。 if(y==w) { save_guest()。 for(。 cout\n 是否確認(y/n)? 。 //入住客人信息顯示 cout\n 客房號 姓名 身份證號 入住時間 退房時間 預(yù)付費用\n。 xempty=1。 cinxoutime[i] xoutime[1] xoutime[2]。 cinxguest_namexID_num。 cout\n 你選擇了客房信息登記功能,請輸入信息(請以0 0 0結(jié)束數(shù)據(jù)輸入):\n。 } cout 你輸入的次數(shù)超過限制,請查詢后在輸入!\n。 goto H。 r=rnext。amp。 goto H。amp。 r=headp。H: cout\n 請輸入客人要入住的客房號: 。amp。 } int i=0。 while (r!=NULL) { if(rempty==0) coutsetw(8)rroom_numsetw(11)rtype setw(15)rpricesetw(15)空閑\n。 cout\n 你選擇了客房信息登記功能,請輸入信息:\n 目前空房間有:\n。 hotel_guest *r。}入住登記include void register_info() //登記客房信息繼續(xù)函數(shù){ system(cls)。 p=pnext。 outfilepoutime[0]poutime[1]poutime[2] 。 while (p!=NULL) { outfilepguest_name pID_num 。}void save_guest() //客人信息保存函數(shù){ ofstream outfile(,ios::out)。 } outfile NULL NULL NULL NULL。 while (p!=NULL) { outfileproom_num ptype pprice pemptyendl。}void save_hotel() //客房信息保存函數(shù){ ofstream outfile(,ios::out)。 getchar()。//客人信息保存函數(shù) cout\n\n 按回車鍵返回主菜單... 。 } //cout是否確認(y/n)?
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1