#include using namespace std; #include "date.h" // simple preview of using the class Date // rcd@cs.duke.edu int main() { int month, year; cout << "Enter month (1-12) and year: "; cin >> month >> year; Date d(month, 1, year); cout << "The first day of the month, " << d << ", is a " << d.DayName() << endl; cout << "and the month has " << d.DaysIn() << " days in it." << endl; d += d.DaysIn(); cout << "The next month's name is " << d.MonthName() << " and it has " << d.DaysIn() << " days in it." << endl; Date today; cout << "Today's date is " << today << endl; cout << "The number of days between " << today << " and " << d << " is " << today - d << "." << endl; return 0; }