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

正文內(nèi)容

3768t旅店管理系統(tǒng)課程設(shè)計(jì)報(bào)告-閱讀頁(yè)

2024-09-25 12:02本頁(yè)面
  

【正文】 1typep1pricep1empty。 p1ID_num=0。 p1outime。 } p2next=NULL。 ()。 ifstream infile(,ios::in)。 while(p!=NULL) { infilepguest_namepID_num。i3。 for (i=0。i++) infilepoutime[i]。 p=pnext。}客房信息錄入include void room_infor_in() //客房信息錄入功能函數(shù){ string a=0。) { system(cls)。 cout 此 功 能 將 清 除 之 前 所 有 信 息 !。 cout 是否確認(rèn)錄入(y/n)? 。 if (n==a) main_third_serve_display()。 else { cout你的輸入有誤!請(qǐng)重新輸入: 。 continue。 cout\n\n 你選擇了客房信息錄入功能 。 cout\n\n 客房號(hào) 客房類型 客房?jī)r(jià)格\n。 //調(diào)用函數(shù)creat_hotel()實(shí)現(xiàn)客房信息錄入 cout 客房信息錄入如下:\n\n。 p=headp。 p=pnext。//客房信息保存函數(shù) save_guest()。 while(!kbhit())。 main_third_serve_display()。 p=headp。 p=pnext。 ()。 p=headp。 outfilepintime[0]pintime[1]pintime[2] 。 outfilepprepayendl。 } ()。 string reg=0。 r=headp。 cout\n 客房號(hào)碼 客房類型 客房?jī)r(jià)格 使用狀態(tài)\n。 r=rnext。 if(i=0amp。i3) { coutendl。 cinreg。 while(r!=NULL) { if((reg==rroom_num)amp。(rempty==1)) { cout\n 該房間正在使用,請(qǐng)輸入其它房間!\n。 } if((reg==rroom_num)amp。(rempty==0)) register_guest_info(r)。 } cout 輸入的客房號(hào)不存在!\n。 i++。}struct hotel_guest *register_guest_info(struct hotel_guest *x) //登記客人信息函數(shù){ system(cls)。 cout\n 姓名 身份證號(hào) 入住時(shí)間 退房時(shí)間 預(yù)付費(fèi)用\n 。 cinxintime[0] xintime[1] xintime[2]。 cinxprepay。 cout 客人登記信息結(jié)果如下:\n。 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。 string w=0。) { cinw。 save_hotel()。 } if(n==w) { register_guest_info(x)。 } else { cout 你的輸入有誤!請(qǐng)重新輸入: 。 } } string a=0。) { cout\n 你是否繼續(xù)使用此功能(y/n)? 。 if(y==a) register_info()。 else cout\n 你的輸入有誤!\n\n。}退房結(jié)算include int judge_leap_year(int year) //閏年判斷函數(shù){ int y=0。amp。 else y=0。}int calculate_days(int year,int month,int day) //計(jì)算天數(shù)函數(shù){ int n=0。imonth。break。break。 else n+=28。 return n。 in=calculate_days(uintime[0],uintime[1],uintime[2])。 if (uintime[0]!=uoutime[0])//退房 年 不等于 入住 年 { for(int i=uintime[0]。i++) { if (judge_leap_year(i)==1) j++。 } else //退房 年 等于 入住 年 sum=onin。}void check_out() //退房結(jié)算函數(shù){ string room=0。 cout 你選擇了客人退房結(jié)算功能,請(qǐng)輸入房間號(hào):。 for(。amp。 else check_out_display(p)。 cout\n\n 客人信息如下:\n\n。 coutsetw(6)cguest_name setw(6)cID_num。 coutsetw(8)coutime[0]coutime[1]coutime[2] 。 cout\n 客房信息如下:\n。 coutsetw(8)croom_numsetw(8)ctypesetw(14)cprice。 cout\n 入住天數(shù): total\n 花費(fèi)金額為: total*cprice。 cguest_name=39。 cID_num=39。 for(int i=0。i++) //房間清零 cintime[i]=0。i3。 cprepay=0。 save_hotel()。 for(。 string b=0。 if (y==b) check_out()。 if(figure==2) //若是服務(wù)人員,返回服務(wù)人員主菜單 main_third_serve_display()。 p=headp。 cout 客房號(hào) 客房類型 客房?jī)r(jià)格 使用狀態(tài) 入住人員\n。 if(pempty==0) coutsetw(23)空閑 無(wú)\n。 p=pnext。 while(!kbhit())。 getchar()。 if(figure==2) //若是服務(wù)人員,返回客人主菜單 main_third_serve_display()。//本文件中的全局變量void info_demand() //信息查詢函數(shù){ system(cls)。 cout ********************************************************************\n。 cout********************************************************************\n 。 string x=0。 if(x==1) room_state_demand()。 //客人信息查詢函數(shù)調(diào)用 if(x==3) { if(figure==1) //若是客人,返回客人主菜單 main_third_guest_display()。 //服務(wù)人員系統(tǒng)界面顯示函數(shù) } else { cout 你的輸入有誤! 請(qǐng)重新輸入: 。 }}void room_state_demand() //客房狀態(tài)查詢函數(shù) { system(cls)。 cout ******************************************************************\n。 cout 3查詢所有客房狀態(tài) 4返回上一層菜單\n。 cout\n 請(qǐng)輸入: 。Z: cinx。//調(diào)用 查詢空客房函數(shù) if(x==2) exact_room_state()。 //調(diào)用 所有房間狀態(tài)查詢函數(shù) if(x==4) info_demand()。 goto Z。 cout 客房號(hào) 客房類型 客房?jī)r(jià)格 使用狀態(tài)\n。 p=pnext。 while(!kbhit())。 thank_face()。 //返回上一層菜單(客房狀態(tài)查詢函數(shù))}void exact_room_state() //客房狀態(tài)精確查詢函數(shù){ string room=0。 cout\n\n 請(qǐng)輸入你要查詢的客房號(hào): 。 p=headp。amp。 coutsetw(11)proom_numsetw(11)ptypesetw(16)pprice。 else if(pempty==1) coutsetw(16)使用\n。 } p=pnext。amp。 break。 cout\n 是否繼續(xù)精確查詢(y/n)? 。 if(n==x) { thank_face()。 //返回上一層菜單(客房狀態(tài)查詢函數(shù)) } else if(y==x) goto R1。 goto R2。 cout 客房號(hào) 客房類型 客房?jī)r(jià)格 使用狀態(tài)\n。 if(pempty==0) coutsetw(15)空閑\n。 p=pnext。 while(!kbhit())。 thank_face()。 //返回上一層菜單(客房狀態(tài)查詢函數(shù))}void thank_face() //感謝界面{ system(cls)。 cout 按 回 車 鍵 返 回 上 一 層 菜 單 !。 while(!kbhit())。}void guest_info_demand() //客人信息查詢函數(shù){ system(cls)。 cout *********************************************************************。 cout\n 3按客房號(hào)碼查詢 4返回上一層菜單\n。 cout\n\n 請(qǐng)輸入: 。 p=headp。 //按姓名查詢 if(kerenchaxun==2) ID_num_demand()。 //按房間號(hào)查詢 if(kerenchaxun==4) info_demand()。 goto P2。 p=headp。 cindemand_name。 if(pnext=NULLamp。pguest_name!=demand_name) { cout\n 沒(méi)有信息!\n。 } } demand_display(p)。 p=headp。 cinID_number。 if(p==NULLamp。pID_num!=ID_number) { cout\n 沒(méi)有信息!\n。 } } demand_display(p)。 p=headp。 cinroom_number。 if(pnext==NULLamp。proom_num!=room_number) { cout\n 沒(méi)有信息!\n。 } } demand_display(p)。 cout\n
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1