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

正文內容

3768t旅店管理系統(tǒng)課程設計報告(文件)

2024-09-29 12:02 上一頁面

下一頁面
 

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