// date.h #ifndef DATE_H #define DATE_H // This is the header file for class date. class date { // Declarations for data members: int year; int month; // in the range 1 to 12 inclusive int day; // in the range 1 to 31 inclusive static const int length[]; // static data member public: // Declarations for member functions: date(int init_month, int init_day, int init_year); // constructor date(); // default constructor static int monthsInYear(); // static member function void print() const; // const member function void next(int n); // move forward (or backward if n is negative) void next(); // move forward one day void prev(int n); // move backward n days void prev(); // move backward one day }; #endif