first commit

master
657172703@qq.com 7 years ago
commit 264b951412

@ -0,0 +1,73 @@
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<conio.h>
#include<string.h>
#define len sizeof(struct room)
void main_page();/*界面函数*/
int select_();/*选择函数*/
void qingping();/*清屏函数*/
void xitongshijian(void);/*时间函数*/
struct room /*结构体数组inf*/
{
char num[10]; /*房间号*/
char human[10]; /*单双人*/
char kind[10]; /*类型*/
char inout[10]; /*是否有人入住*/
int time[3];/*时间*/
};
int main()
{
struct room inf[10];
select_();
return 0;
}
void main_page() /*界面函数
*/
{ system("cls");
printf(" \n* 酒店管理系统主界面 *\n");
printf(" \n* 1.房间信息查询 *\n");
printf(" \n* 2.房间信息修改 *\n");
printf(" \n* 3. 登记入住 *\n");
printf(" \n* 4. 费用查询 *\n");
printf(" \n* 5. 退房 *\n");
printf(" \n* 6. 退出程序 *\n");
printf("请选择\n");
}
int select_() /*选择函数*/
{
int n;
main_page();
scanf("%d",&n);
while(n)
{switch(n)
{
case 1: ;
case 2: ;
case 3: ;
case 4: ;
case 5:;
case 6: return 0;
}
getch();//按任意数返回
main_page();
scanf("%d",&n);
}
return 0;
}

Binary file not shown.
Loading…
Cancel
Save