Untitled
unknown
plain_text
a year ago
550 B
5
Indexable
#indef DATE_H 4 #define DATE_ H 5 6 class Date 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 public: static const int monthsPerYear = 12; // number of months in a year Date( int = 1, int = 1, int = 1900); // default constructor void print) const; // print date in month/day/year format ~Date(): // provided to confirm destruction order private: int month; // 1-12 (January-December) int day; // 1-31 based on month int year; // any year // utility function to check if day is proper for month and year int checkDay int) const; J: // end class Date #endif
Editor is loading...
Leave a Comment