parent
0797ad618c
commit
8746011122
@ -1,81 +0,0 @@
|
|||||||
#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 query_r(void);/*房间信息查询函数*/
|
|
||||||
void loading();/*读取函数*/
|
|
||||||
void saving();/*保存函数*/
|
|
||||||
void reroom();/*退房函数*/
|
|
||||||
void xitongshijian(void);/*时间函数*/
|
|
||||||
void feiyongchaxun();/*费用查询函数*/
|
|
||||||
void register_();/*登记入住函数*/
|
|
||||||
void delete_();/*删除函数*/
|
|
||||||
void setting();/*新建函数*/
|
|
||||||
extern int qty;
|
|
||||||
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…
Reference in new issue