1
0

mytime1.h 356 B

12345678910111213141516171819
  1. // mytime1.h -- Time class before operator overloading
  2. #ifndef MYTIME1_H_
  3. #define MYTIME1_H_
  4. class Time
  5. {
  6. private:
  7. int hours;
  8. int minutes;
  9. public:
  10. Time();
  11. Time(int h, int m = 0);
  12. void AddMin(int m);
  13. void AddHr(int h);
  14. void Reset(int h = 0, int m = 0);
  15. Time operator+(const Time & t) const;
  16. void Show() const;
  17. };
  18. #endif