酒店管理系统源代码_第1页
酒店管理系统源代码_第2页
酒店管理系统源代码_第3页
酒店管理系统源代码_第4页
酒店管理系统源代码_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

酒店管理系统源代码 include include include include typedef struct tagCustomer char m ID 19 身份证号码 char m name 10 顾客姓名 int m age 顾客年龄 char m sex 6 顾客性别 int num Customer 顾客结构 typedef struct tagRoom int m num 房间号 int m floor 楼层 int m price 价格 int m use 是否已入住 Room 房间结构 int i j 0 age num floor price use n int reg 0 Customer cus 5 Room r 5 int count 5 char ID 18 name 10 sex 6 FILE fproom FILE fpcustomer void Customer Input if count 5 printf 请输入身份证号 18 位数字 scanf s printf 请输入姓名 10 位字符 scanf s printf 请输入年龄 数字型 scanf d printf 请输入性别 男或女 scanf s else printf n 存储空间已满 printf n r 顾客可以住在 printf n r 房间号 楼层 价格 是否空闲 1 空闲 0 已使用 for i 0 i count i if r i m use 1 printf n r d d d d r i m num r i m floor r i m price r i m use printf n r 请你输入房间号 scanf d reg 0 for i 0 i count i if r i m use 1 printf n 登记成功 n cus j num r i m num j j 1 reg 1 if reg 0 printf n 登记失败 n void Customer ListOut if count 5 printf 请输入身份证号 18 位数字 scanf s for i 0 i count i if strcmp cus i m ID ID 0 printf n r 顾客身份证号 s 姓名 s 年龄 d 性别 s n cus i m ID cus i m name cus i m age cus i m sex else printf n n void Room ListOut printf n r 房间号 楼层 价格 是否空闲 1 空闲 0 已使用 for i 0 i count i if r i m use 1 printf n r d d d d r i m num r i m floor r i m price r i m use void PerCustomer Search if count 5 printf 请输入身份证号 18 位数字 scanf s printf 请输入姓名 10 位字符 scanf s printf 请输入年龄 数字型 scanf d printf 请输入性别 男或女 scanf s else printf n 住房已满 printf n r 顾客可以预订 printf n r 房间号 楼层 价格 是否空闲 1 空闲 0 已使用 for i 0 i count i if r i m use 1 printf n r d d d d r i m num r i m floor r i m price r i m use printf n 请你输入要预订的房间号 scanf d reg 0 for i 0 i count i if r i m use 1 printf n 预订成功 n cus j num r i m num j j 1 reg 1 if reg 0 printf n 预订失败 n void UnCustomer Out int k printf n 请输入要退房顾客身份证 scanf s for i 0 i count i if strcmp cus i m ID ID 0 printf n r 顾客身份证号 s 姓 名 s 年龄 d 性别 s n r 已经成功退房 cus i m ID cus i m name cus i m age cus i m sex for k 0 k count k if r k m num cus i num r k m use 1 memset void Customer Goaway fproom fopen room wb fwrite void fclose fproom fpcustomer fopen customer wb fwrite void fclose fpcustomer exit 0 main fproom fopen room wb if fproom NULL for i 0 i0break case 2 Customer ListOut break 查询顾客 信息 case 3 Room ListOut break 查询空房间 case 4 PerCustomer Search break 预订房 间 case 5 UnCustomer

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论