/******************************************************************************************** example 3 -- miltime.h Developing the military time class ********************************************************************************************/ #include <iostream> using namespace std; //class definition class miltime { private: int hour; // 0-23 int minute; // 0-59 int second; // 0-59 public: miltime(); // replaces void setup(miltime& t); void print(ostream& out = cout) const; // replaces void print(const miltime& t, ostream& out = cout); void addHour(const int h); // replaces void addHour(miltime& t, const int h); void addMinute(const int m); // replaces void addMinute(miltime& t, const int m); void addSecond(const int s); // replaces void addSecond(miltime& t, const int s); };