/******************************************************************************************** example 4 -- 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(const int h=0, const int m=0, const int s=0); //constructor with inits void print(ostream& out = cout) const; void addHour(const int h); void addMinute(const int m); void addSecond(const int s); };