#include <iostream>
using namespace std;
class CTime
{
private:
unsigned short int hour;
unsigned short int minute;
unsigned short int second;
public:
CTime(int h=0,int m=0,int s=0);
void setTime(int h,int m,int s);
void display();
bool operator>(CTime &t);
bool operator<(CTime &t);
bool operator>=(CTime &t);
bool operator<=(CTime &t);
bool operator==(CTime &t);
bool operator!=(CTime &t);
CTime operator+(CTime &t);
CTime operator-(CTime &t);
CTime operator+(int s);
CTime operator-(int s);
CTime &operator+=(CTime &c);
CTime &operator-=(CTime &c);
CTime &operator+=(int s);
CTime &operator-=(int s);
CTime operator++(int);
CTime operator++();
CTime operator--(int);
CTime operator--();
};
CTime::CTime(int h,int m,int s):hour(h),minute(m),second(s){}
void CTime::setTime(int h,int m,int s)
{
hour=h;
minute=m;
second=s;
}
void CTime::display()
{
cout<<hour<<":"<<minute<<":"<<second<<endl;
}
bool CTime::operator >(CTime &t)
{
if(hour>t.hour)return true;
else if(hour<t.hour)return false;
if(minute>t.minute)return true;
else if(minute<t.minute)return false;
if(second>t.second)return true;
else if(second<t.second)return false;
}
using namespace std;
class CTime
{
private:
unsigned short int hour;
unsigned short int minute;
unsigned short int second;
public:
CTime(int h=0,int m=0,int s=0);
void setTime(int h,int m,int s);
void display();
bool operator>(CTime &t);
bool operator<(CTime &t);
bool operator>=(CTime &t);
bool operator<=(CTime &t);
bool operator==(CTime &t);
bool operator!=(CTime &t);
CTime operator+(CTime &t);
CTime operator-(CTime &t);
CTime operator+(int s);
CTime operator-(int s);
CTime &operator+=(CTime &c);
CTime &operator-=(CTime &c);
CTime &operator+=(int s);
CTime &operator-=(int s);
CTime operator++(int);
CTime operator++();
CTime operator--(int);
CTime operator--();
};
CTime::CTime(int h,int m,int s):hour(h),minute(m),second(s){}
void CTime::setTime(int h,int m,int s)
{
hour=h;
minute=m;
second=s;
}
void CTime::display()
{
cout<<hour<<":"<<minute<<":"<<second<<endl;
}
bool CTime::operator >(CTime &t)
{
if(hour>t.hour)return true;
else if(hour<t.hour)return false;
if(minute>t.minute)return true;
else if(minute<t.minute)return false;
if(second>t.second)return true;
else if(second<t.second)return false;
}