#ifndef DATE_H #define DATE_H //This is the header file for class date. //Jan 1, 0 AD is day 0 //Jan 2, 0 AD is day 1 //Dec 31, 0 AD is day 364 //Jan 1, 1 AD is day 365 //etc. //so day / 365 is the year //and day % 365 is the day of the year (in the range 0 to 364 inclusive) class date { //Declarations for data members: int day; static const int length[13]; //static data member (needs the 13) public: //Declarations for member functions: date(int m, int d, int y); //constructor void print() const; //const member function void next(int n); //non-const member function void next(); void prev(int n); void prev(); }; #endif