设计一个程序实现对宾馆房间的基本管理,可以实现:客房信息的录入功能;客人入住登记、客人退房结算;客房信息浏览功能,浏览全部客户的信息,客房信息和客户信息分别保存于不同文件;客房信息查询,查询空房间情况,实现按房间号查询等。
https://blog.csdn.net/cjl1831050185/article/details/109231390
客房信息的录入功能;客人入住登记、客人退房结算;客房信息浏览功能,浏览全部客户的信息,客房信息和客户信息分别保存于不同文件;客房信息查询,查询空房间情况,实现按房间号查询等。
https://max.book118.com/html/2021/0730/8023052062003126.shtm
代码完整版:
#include<iostream>
#include<string>
#include<string. h>
#include<fstream>
using namespace std;
const int MAX=50;
class Customer
{public:
int CNum;
//顾客编号
string name ;
//顾客名字
long long ID;
//顾客身份证号码
string Sex;
//顾客性别
long 1ong Phone;
//联系电话
int money;
//订金
int StayTime ;
//入住时间
int LeaveTime;
//高开时间
int CRoom;
//所住房间
Customer(){};
};
class HolterRoom:public Customer
{public:
int num;
//客房编号
int Price;
//客房价钱
string Type;
//客房等级
int SoldTime;
//出售时间
HolterRoom()
class HolterRoom:public Customer
{public:
int num;
//客房编号
int Price;
//客房价钱
string Type;
//客房等级
int SoldTime;
//出售时间
HolterRoom()