⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 room.h.bak

📁 命令行模式下的简单宾馆管理系统..各种基本功能齐全..属于新人练习作品..hotel manager..
💻 BAK
字号:
/*
 * File: room.h
 * ----------------
 * This file contains some declarations about the room info.
 */

#ifndef ROOM_H
#define ROOM_H

#include "base.h"
#include "account.h"

//#define MAXFURN 10	// add
//#define NUMOFPT 3
//#define NUMOFRS 4

/*
struct Furniture	// add ..
{
	string  furnName[MAXFURN];
	int oNum[MAXFURN];
	int cNum[MAXFURN];
};
*/


enum RoomState{CLEAN,INUSE,NEEDFIX,NEEDCLEAR};
enum RoomType{SINGLE,DOUBLE,TRIPLE,SUITE};

/*
 * Class: room
 * ----------------
 * This class contains all the room's
 * info and operation functions.
 */


class Room
{
public:
	Room();		// constructor.
	void SetInfo();
	void SetRoomNum( int );
	void SetRoomType( RoomType );
	void SetBusinessNum( int );
	void SetRoomPrice( int );
	void SetChargingHours( int );
	void SetCustomerName( string );
	void SetCustomerID( int );
	void SetStartDate( int = 0, int = 0, int = 0 );
	void SetStartTime( int = 0, int = 0, int = 0 );
	void SetDealPrice( int );
	void SetRoomState( RoomState );
	int GetCurExpences();
	int GetRoomNum();
	int GetCustomerID();
	//Date *GetStartDate();
	//Time *GetStartTime();
	RoomState GetRoomState();
	string GetRoomCustomerName();
	void PrintInfoBrief();		// print the room info briefly..roomNum..roomType..roomState.
	void PrintInfo();		// print the room info in detail.
	void WriteToFile( ofstream *fout );///  // write the room info to the data file.
	void ReadFromFile( ifstream *fin );///	// read the room info from the data file.
	~Room();		// destructor.
private:
	int roomNum;
	RoomType roomType;
	int businessNum;
	int roomPrice;
	int chargingHours;  //how many hours pay once roomPrice
	string customerName;
	int customerID;
	Date startDate;
	Time startTime;
	int dealPrice;
	RoomState roomState;
};
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -