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

正文內容

3768t旅店管理系統(tǒng)課程設計報告(完整版)

2024-10-23 12:02上一頁面

下一頁面
  

【正文】 string wname=0。 } else //退房 年 等于 入住 年 sum=onin。初始化其它的各變量,并使p2next指向空 } return head。 //插到p2指向的結點之后 p0next=p1。 //使p1指向第一個結點p0=ins。當文件里沒有信息時,系統(tǒng)不會進入歡迎界面,而是自動運行客房信息錄入界面。 goto guest_name。void name_demand() //按客人姓名查詢函數(shù){ string demand_name=0。 p=pnext。為解決這一問體,把int類型變量改為string類型,但是string類型不能在switch語句中應用,所以用了if 選擇語句。因為我是把這條語句放在了主函數(shù)的開始,所以以后的界面全是白字藍屏。和旅店管理系統(tǒng)有所差別。也可以繼續(xù)訪問。為以后的學習打下一定的基礎,也為自己以后如何制定學習計劃做一鋪墊。(3)學習和掌握C++程序設計方法以及上機調試技巧,為今后學習其它專業(yè)課程打好堅實的基礎。二、功能介紹旅店管理系統(tǒng)進入本系統(tǒng),首先是歡迎界面,按回車鍵繼續(xù),接著是選擇身份,有客人身份和服務人員身份可供選擇,客人的權限比較小,選擇服務人員身份需要驗證身份,也就是需要輸入密碼,輸入三次仍然不正確退出本系統(tǒng)。主要的設計思路和旅店管理系統(tǒng)有些雷同。include里面的DOS命令cls.具體的代碼是system(“cls”)。貴賓登陸界面客人選擇界面 賓客選擇只有查詢和瀏覽權限,退出本系統(tǒng)返回歡迎界面,之后可以選擇自己的身份。void empty_room_state() //查詢空客房函數(shù) { p=headp。 thank_face()。 if(pnext=NULLamp。等到客人退房結算時在讓其等于零。 //否則將下一結點地址賦給前一結點地址返回一個head指針。 //使p2指向剛才p1指向的結點 p1=p1next。否則使p2next=p1。iuoutime[0]。以后在每一個CPP里面(除了“主函數(shù). CPP”)加上這個頭文件就解決了。 continue。 break。 if (D!=NULL) p=Dnext。//是否繼續(xù)執(zhí)行刪除 } else if(AA==n) info_edit()。心得體會通過三個星期的課程設計的學習,我感覺我對C++的認識有一個更深刻的體會,以前上課時有一些不太明白的地方,現(xiàn)在有一些也明白了。 //全局變量 int n。 cout\n ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆。 cout 中國 cout\n\n\n\ 1貴 賓 2服務人員\n。 //調用 關閉電腦函數(shù) else { i++。 cout\n\n\n\n\n\n\n\n\n\n\n\n\n\n 按回車鍵退出系統(tǒng)...。 cout\n ☆ ☆。鄭州\n\n 按回車鍵繼續(xù)...。 cout ※ 1客房信息查詢 ※ 2客房信息瀏覽\n。 if(x==1) info_demand()。 goto B。 cout\n☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆。 cout 中國 cout ****************************************************************\n\n。 int i=0。 //調用 信息查詢函數(shù) else if(main_select==6) info_delete()。i3) //只有3次機會 { cout 你的輸入有誤,請重新輸入: 。 exit(0)。 p1=head。 } //p1后移一個結點 if(p0room_nump1room_num) { if(head==p1) head=p0。 int i。\039。 head=NULL。 p1empty=0。 for(i=0。 for (。 p=pnext。 while(! infile) { cerr\n\n\n\n 客房信息不存在!\n\n。 infilep1room_num。 room_infor_in()。 while(p1room_num!=0) { n+=1。 p1intime。 p=headp。 infilepprepay。 cout\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n。 } } system(cls)。 while (p!=NULL) { coutsetw(10)proom_numsetw(11)ptypesetw(17)ppricesetw(17)空閑\n。}void save_hotel() //客房信息保存函數(shù){ ofstream outfile(,ios::out)。 while (p!=NULL) { outfilepguest_name pID_num 。 hotel_guest *r。amp。 goto H。 } cout 你輸入的次數(shù)超過限制,請查詢后在輸入!\n。 xempty=1。 if(y==w) { save_guest()。 for(。 if(year%4==0 amp。i++) { switch(i) { case 1 : case 3 : case 5 : case 7 : case 8 : case 10 : case 12 : n+=31。}int which_day(hotel_guest *u) //計算輸入的時間是本年的第幾天(帶回計算的天數(shù)){ int sum=0,j=0,in=0,on=0。 return sum。pempty==0) p=pnext。 coutsetw(8)pprepay。\039。i++) coutime[i]=0。 cinb。 while (p!=NULL) {coutsetw(8)proom_numsetw(8)ptypesetw(8)pprice。 if(figure==1) //若是客人,返回客人主菜單 main_third_guest_display()。 cout\n 請輸入: 。 goto YOUWU。 string x=0。 }}void empty_room_state() //查詢空客房函數(shù) { p=headp。 //感謝界面 room_state_demand()。pnext!=NULL) { if(proom_num==room) { cout 客房號 客房類型 客房價格 使用狀態(tài)\n。pnext==NULL) { cout\n 你的輸入有誤或者不存在該客房號!\n。 else { cout你的輸入有誤!\n。 } cout\n 按回車鍵繼續(xù)...。 cout\n\n\n\n\n\n\n\n\n\n\n\n\n\n。 cout *********************************************************************。 //調用 信息查詢函數(shù) else { cout\n 你的輸入有誤!請重新輸入: 。amp。 while(p!=NULL) { if(pID_num!=ID_number) { p=pnext。room_num: cout\n 請輸入要查詢者的房間號: 。 }}void demand_display(struct hotel_guest *x) //查詢時顯示函數(shù){ cout\n 你要查詢的客房的信息如下:\n。 while(p!=NULL) { if(proom_num!=room_number) { p=pnext。amp。 goto guest_name。 }}void name_demand() //按客人姓名查詢函數(shù){ string demand_name=0。P2: cinkerenchaxun。 getchar()。 getchar()。 }}void all_room_state() //所有房間狀態(tài)查詢函數(shù){ p=headp。 }R2: string x=0。 if(pempty==0) coutsetw(16)空閑\n。R1: system(cls)。 while (p!=NULL) { if(pempty==0) coutsetw(8)proom_numsetw(9)ptypesetw(15)ppricesetw(15)空閑\n。 if(x==1) empty_room_state()。 cout\n 你選擇了客房狀態(tài)查詢,請輸入你的條件:\n\n。YOUWU: cinx。}信息查詢include string kerenchaxun=0。 else coutsetw(23)使用 pguest_nameendl。 //退房結算函數(shù)的遞歸調用 if (n==b) { if(figure==1) //若是客人,返回客人主菜單 main_third_guest_display()。 cempty=0。\039。 cout\n 客房號碼 客房類型 客房價格\n。 //退房結算顯示函數(shù) }}void check_out_display(struct hotel_guest *c) //退房結算顯示函數(shù){ system(cls)。 p=headp。 on=calculate_days(uoutime[0],poutime[1],uoutime[2])。 case 4 : case 6 : case 9 : case 11 : n+=30。 year%100!=0 || year%400==0) y=1。 cina。 break。 //入住客人信息顯示 cout\n 客房號 姓名 身份證號 入住時間 退房時間 預付費用\n。 cout\n 你選擇了客房信息登記功能,請輸入信息(請以0 0 0結束數(shù)據(jù)輸入):\n。amp。H: cout\n 請輸入客人要入住的客房號: 。 cout\n 你選擇了客房信息登記功能,請輸入信息:\n 目前空房間有:\n。 outfilepoutime[0]poutime[1]poutime[2] 。 while (p!=NULL) { outfileproom_num ptype pprice pemptyendl。 } //cout是否確認(y/n)? save_hotel()。 cout請按以下格式輸入信息(請以0 0 0結束數(shù)據(jù)輸入):。 cina。 } ()。 for (i=0。 p1prepay=0。 else p2next=p1。
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1