return cm;
}
+ hour increase();
+ hour decrease();
+
public:
hour()
friend hour operator+(hour &, hour &);
hour operator += (hour h);
+
+ hour operator ++ () // prefix
+ {
+ return increase();
+ }
+
+ hour operator ++ (int) // postfix
+ {
+ return increase();
+ }
+
friend hour operator-(hour &, hour &);
+ hour operator -= (hour h);
+
+ hour operator -- () // prefix
+ {
+ return decrease();
+ }
+
+ hour operator -- (int) // postfix
+ {
+ return decrease();
+ }
+
friend std::ostream& operator<<(std::ostream &, const hour &);
friend std::istream& operator>>(std::istream &, hour &);