- 相关推荐
停车场管理c++
Time ---停车场时间类
Stack ---停车场栈类
Queue ---停车场便道队列类
SystemLog ---停车场系统日志类
CarSystem ---停车场系统类
---------------------------------------
分别有11个文件:
Time http://www.ahsrst.cn
Stack http://www.ahsrst.cn
Queue http://www.ahsrst.cn
SystemLog http://www.ahsrst.cn
CarSystem http://www.ahsrst.cn
分别为对应的声明(头文件)和实现
下面的这些文件的包含关系:
int main()
#include "http://www.ahsrst.cn"
#include "http://www.ahsrst.cn"
#include "http://www.ahsrst.cn"
#include "http://www.ahsrst.cn"
#include "http://www.ahsrst.cn"
文件的包含很不合理,有待日后改进~!
----------------------------------------------------------------
下面是源代码:
------------------------------------------------------------------------------------------
//http://www.ahsrst.cn
#include <iostream>
using namespace std;
class Time
{
private:
int _hour;
int _minute;
public:
Time();
Time(int hour,int minute);
Time(const Time& time);
bool SetTime(int hour,int minute);
bool Check_Time()const;
bool ReSet_timeArr();
bool operator==(const Time& time)const;
bool operator>(const Time& time)const;
bool operator<(const Time& time)const;
bool operator>=(const Time& time)const;
bool operator<=(const Time& time)const;
bool operator!=(const Time& time)const;
const Time operator+(int minute);
const Time operator+(const Time& time);
const int operator-(const Time& time);
const Time operator-(int minute);
const Time operator+=(const Time& time);
const Time operator-=(const Time& time);
const Time operator=(const Time& time);
const Time operator++(int a);
const Time operator--(int a);
friend const Time operator++(Time& time);
friend const Time operator--(Time& time);
friend ostream& operator<<(ostream& out,const Time& time);
friend istream& operator>>(istream& ins,Time& time);
};
--------------------------------------------------------------------------------
//http://www.ahsrst.cn
#include "http://www.ahsrst.cn"
using namespace std;
Time::Time()
{
_hour=0;
_minute=0;
}
Time::Time(int hour, int minute)
{
_hour=hour;
_minute=minute;
}
Time::Time(const Time &time)
{
_hour=time._hour;
_minute=time._minute;
}
【停车场管理c++】相关文章:
停车场管理管理制度11-24
停车场管理制度06-14
停车场管理的规章制度03-10
停车场管理制度06-13
停车场管理规章制度06-30
停车场管理规章制度10-06
停车场管理管理制度(15篇)11-26
停车场管理管理制度15篇11-25
停车场管理管理制度精选15篇11-28
停车场消防管理制度03-29