// <!-- 以下是此酒店的所需的头文件 -->
#include<windows.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
//成员变量的声明
int i,j,k,p=0;
char temp[]="";
int room[5][5];
clock_t start;
//成员方法的声明
void init()
{
int x,y;
for(x=0;x<5;x++)
{
for(y=0;y<5;y++)
{
room[x][y]=0;
}
}
}
void hotelTitle()
{
printf("\n-------酒店房间登记与计费管理系统----\n");
printf("\t1.登记入住\n");
printf("\t2.查询房间的入住情况\n");
printf("\t3.查询当前费用\n");
printf("\t4.结账退房\n");
printf("\t5.退出程序\n");
}
void hotel_execute();
void hotel_select();
void hotel_outhotel();
void outsystem();
void hotel_total();
int main(void)
{
system("color f1");
init();
while(1)
{
Loop:
hotelTitle();
printf("\n请选择:");
j=scanf("%d",&k);
if(j==0||k<1||k>5)
{
printf("\n输入错误。\n\t请输入所列出的选项。\n\n 3 秒后刷新...Please Weit! Thanks\n");
fflush(stdin);
Sleep(3000);
system("cls");
goto Loop;
}else{
switch(k)
{
case 1:hotel_execute();break;
case 2:hotel_select();break;