【正文】
成績: 簽名: 年 月 日 。 在此我向在此次課程設(shè)計時對我伸出援助之手的 靳蓓蓓 、 王元航 老師,還有幫助我的同學(xué)們表示感謝。 致謝 這個程序的實現(xiàn)固然需要自身的努力,當然也離不開同學(xué)們的幫助與講 解。 在程序的設(shè)計過程中遇到了很多的困難,在程序一次一次的調(diào)試失敗下更讓我學(xué)會了堅持,毫不畏懼困難,在同學(xué)的幫助和老師的講解下順利的完成了課程設(shè)計。 入住賓館模塊 14 實現(xiàn)退房模塊 顯示客房情況模塊 15 查找模塊 16 通過這次課程設(shè)計,我對很多的函數(shù)有了新的認識,也學(xué)會了運用多種函數(shù)。 6. 功能模塊的測試 進入程序主菜單模塊 主選單具有所有函數(shù)的功能實現(xiàn)的選擇功能,通過主選單的操作 進入各個功能。 printf(The room has check out ,thanks for your wele.\n)。j)。 printf(\n\t\tAre you sure to check out? \n\n\t\t\tplease choose:)。 printf(The room has check out ,thanks for your wele.\n)。j)。 printf(\n\t\tAre you sure to check out? \n\n\t\t\tplease choose:)。 else {if(room[i301].flag==0) printf(Without customer.\n)。i++) if(strcmp(room[i301].name[0],sure)==0||strcmp(room[i301].name[1],sure)==0||i==atoi(sure)) break。 for(i=301。 printf(\n\n\t\t******Please input a name or a room number :)。 子函數(shù)詳細代碼 如: void checkout() {int i,j。 void search(void)。 void checkin(void)。 int flag。 其中: char name[2][20]。 int flag。} } 4. 功能模塊的具體設(shè)計 主界面分析 入住功能的界面 hotel’s management system ************* Wele to the hotel ************* Please choose a option: 1. Check in 2. Check out 3. Search 4. Show customer’s message 5. quit option: hotel’s management system ************* Wele to the hotel ************* Please choose a option: 1. Check in 2. Check out 3. Search 4. Show customer’s message 5. quit option: ***please choose person person 1 please input name and sex: 10 退房功能的界面 查找功能的界面 hotel’s management system ************* Wele to the hotel ************* Please choose a option: 1. Check in 2. Check out 3. Search 4. Show customer’s message 5. quit option:2 please input a name or a room number: