酒店房间登记与计费管理系统源代码
#define M 80
#include
#include
#include
/*函数声明*/
void check_in(); /*void chamber(); /*void price(); /*void fee(); /*void infor(); /*void save(int); /*void read(int); /*void choice(); /*登记入住函数*/
入住情况函数*/
当前费用函数*/
结账退房函数*/
信息查询函数*/
保存信息函数*/
读取信息函数*/
功能选择函数*/
int judge_year(int); /*判断闰年函数*/
void information(); /*输出全部房间信息*/
/*结构体*/
struct time
{int year;
int mon;
int date;
int hour;
};
struct room /*定义各房间信息的结构体*/
{char name[40];
char ID[18];
int flag; /* 0-无人入住,1-按小时计费,2-按天计费long int deposit;
*/
time t[2]; /* 0-入住时间,1-当前时间 */
}room[M];
char c1[40]={0};
char c2[18]={0};
/*主函数(主界面)*/
void main()
{system(\清屏*/
system(\
int n;
printf(\************************\
printf(\**\
printf(\ ---------- 欢迎光临万豪酒店 ---------- **\
C语言课程设计酒店房间登记与计费管理系统源代码
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)
![](/skin/haowen/images/icon_star.png)