#include #include #include "date.h" //so that main.C can mention date using namespace std; int main() { cout << "A year has " << date::monthsInYear() << " months.\n"; //Output the date of Independence Day. const date independenceDay {7, 4, 1776}; //month, day, year independenceDay.print(); cout << " is Independence Day.\n"; //Output today's date. const date today; //Call the default constructor. today.print(); cout << " is today.\n"; //Output tomorrow's date. date tomorrow {today}; //Call the copy constructor. tomorrow.next(); //Advance one day. tomorrow.print(); cout << " is tomorrow.\n"; //Output the date that is one week from today. date nextWeek {today}; nextWeek.next(7); nextWeek.print(); cout << " is next week.\n"; return EXIT_SUCCESS; }