欢迎来到天天文库
浏览记录
ID:48616798
大小:58.00 KB
页数:34页
时间:2020-01-29
《C语言旅馆信息管理程序文件.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、.word可编辑.externintGuestNumber;#include"Structs.h"intGuestNumber;intGuestNumber=0;voidmain(void){LoadHotelInfo(rooms);LoadGuestInfo();LoadGARInfo();handlemenu();}voidprintMenu(){printf("1查看旅店信息""2查看某一房间信息""3查看旅客信息""4查看某一旅客信息""5旅客入住""6旅客换房""7旅客退房""8退出".专业.专注..word可
2、编辑.);}voidhandlemenu(){inti=0;do{printMenu();printf("请选择:");scanf("%d",&i);fflush(stdin);switch(i){case1:ViewAllHotel();printf("");break;case2:ViewOneRoom();printf("");break;case3:.专业.专注..word可编辑.ViewAllGuest();printf("");break;case4:ViewOneGuest();printf("");bre
3、ak;case5:GuestCheckIn();printf("");break;case6:GuestChangeRoom();printf("");break;case7:GuestCheckOut();printf("");break;case8:SabeGARInfo();SabeGuestInfo();.专业.专注..word可编辑.SaveHotelInfo(rooms);exit(0);}}while(1);}#include#include#include#
4、include#include#defineFLOORNUMBER4#defineROOMNUMBER5typedefenumRoomType{Single=1,Double=2,Triangle=3}RoomType;typedefstructroom{intRoomNumber;RoomTyperoomtype;intCheckInNumber;intRoomPrice;}Room;typedefstructguestandroom.专业.专注..word可编辑.{charGuestID[20];intGustI
5、nRoom;charCheckInTime[30];charCheckOutTime[30];}GuestAndRoom;typedefstructguestandroom{charName[10];charsex[3];charID[20];}Guest;voidmenu();voidLoadHotelInfo(Roompararoom[FLOORNUMBER][]);voidViewAllHotel();voidSaveHotelInfo(Roompararoom[FLOORNUMBER][]);voidLoadGuestInfo();voidSa
6、veGuestInfo();voidviewOneGuest();voidViewAllGuest();voidAppendGuestInfo();voidGuestCheckIn();.专业.专注..word可编辑.voidGuestChangeRoom();voidGuestCheckOut();voidChangeBookDay();voidAppendGARInfo();voidLoadGARInfo();voidSabeGARInfo();voidAppendGuestHistoryInfo(intGuesti,intGARj);voidha
7、ndlemenu();voidpeintMenu();voidViewOneRoom();intIsOldGuest();intDelGuest(charID[]);intCountGuest(Roompararoom[FLOORNUMBER][]);intCheckRAGIndex(charID[]);intCheckGreeRoom(charSex[]);intFindOneGuest();char*CheckRoomSex(intRoomNumber);Roomrooms[FLORNUMBER][ROOMNUMBER];Guestptoguest
8、[55];GuestAndRoomGAR[55];#include"Structs.h"ext
此文档下载收益归作者所有