#ifndef TIME_H #define TIME_H // // Time // #include #include /* Example Usages of Time class Time t0 ; Time t1 * = new t1(12, 55, PM) ; Time t2("3:56 PM") ; Time t3 = t2 ; Time t4(t3) ; if(t0 == t2) { } if(t2 != t3) { } if(t2 < t3) { } if(t2 <= t3) { } if(t2 >= t3) { } if(t2 > t3) { } cout << t2 << t3 << endl ; */ using namespace std ; class Time{ friend ostream & operator<<(ostream & , const Time & ) ; private: int hours ; int minutes ; string ampm ; public: Time() ; Time(int , int , string ) ; Time(const Time & ) ; Time(string ); bool operator==(const Time & ) const ; bool operator!=(const Time & ) const ; bool operator<(const Time & ) const ; bool operator<=(const Time & ) const ; bool operator>(const Time & ) const ; bool operator>=(const Time & ) const ; }; #endif