简易客房管理系统(C++)

//客房信息:等级类型(经济、标间、豪华、单人间、双人间、三人间)、剩余客房数量
//员工信息:楼层管理员、客房领班、客房经理等
//功能:
//1)登记客人入住登记:房号、客人姓名、入住时间、入住期限、入住押金、每日租金、客房等级、单/双/三人间)
//2) 给定员工姓名,显示本员工所管理的楼层客房信息(经济、标间、豪华、单/双/三人间的入住情况(包括空闲/已入住/入住客人姓名)
//3) 给定入住客人姓名,显示其入住情况(房号、姓名、已交押金、入住费用累计,入住结算)
//4) 给定房号,修改押金数目(实现添加的数目和以往的数目累加)
//5) 按照某类客房(经济、标间、豪华、单人间、双人间、三人间)入住数量的高低进行排序

#include<iostream> 
#include<iomanip> 
#include<string> 
#include <fstream>
using namespace std; 
const int m=100; 
struct Room{  
int id;            //房间号  
int degree;        //客房等级  
int type;          //客房类型  
int floor;         //客房楼层  
int number;        //客房数目 
}; 
class Menu{  
public:    
int MainMenu();  
private:  
};   
int Menu::MainMenu(){  
system("cls");   
cout<<"                  ┌◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆┐"<<endl;      
cout<<"                  |      欢迎使用简明客户管理系统      |"<<endl;      
cout<<"                   ------------------------------------"<<endl;       
cout<<"                  |                                    |"<<endl;      
cout<<"                  |          1.客人入住信息录入        |"<<endl;   
cout<<"                  |                                    |"<<endl;     
cout<<"                  |          2.显示楼层客房信息        |"<<endl;      
cout<<"                  |                                    |"<<endl;      
cout<<"                  |          3.查询客人入住情况        |"<<endl;   
cout<<"                  |                                    |"<<endl;  
cout<<"                  |          4.修改房间押金            |"<<endl;   
cout<<"                  |                                    |"<<endl;   
cout<<"                  |          5.修改客人信息            |"<<endl;   
cout<<"                  |                                    |"<<endl;   
cout<<"                  |          6.统计并显示收入          |"<<endl;               
cout<<"                  |                                    |"<<endl;  
cout<<"                  |          7.客房入住量排序          |"<<endl;
cout<<"                  |                                    |"<<endl; 
cout<<"                  |          8.退出程序                |"<<endl;
cout<<"                  |                                    |"<<endl;
cout<<"                  └◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆┘"<<endl; 
cout<<"                                                        "<<endl;
cout<<"                             请选择(1-8):              "<<endl;
int select;
cin>>select;   
while(select<1 || select>8){    
cout<<"选择错误!请重新选择(1-8):";    
cin.clear();  //当输入字符,清空流错误状态    
cin.sync();  //清空数据流    
cin>>select;  
}   
return select; 
} 
class Customer{  
friend ostream &operator<<(ostream &os,Customer &cu); 
private:  
Menu myMenu;   
    string name;       //客人姓名  
int date;          //入住时间  
int day;           //入住期限  
int money;         //入住押金  
int everydaymoney; //每日租金  
Room room;   //客房信息 
public:  
Customer();  
Customer(string na, int dat, int da, int mo, int emon, int idn, int deg, int ty, int fl, int nu);  
string getname(){   
return name;  
}  
void setname(string na){   
name=na;  
}  
int getdate(){   
return date;  
}  
void setdate(int dat){   
date=dat;  
}  
int getday(){   
return day;  
} 
void setday(int da){   
day=da;  
}  
int getmoney(){   
return money;  
}  
void setmoney(int mon){   
money=mon;  
}  
int geteverydaymoney(){   
retur
  • 14
    点赞
  • 134
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值