#include "date.h" int main() { Date gregorianStart; Date finalExam(5, 9, 2001); Date leapYear(2, 29, 2000); Date piDay(3, 14, 1592); Date myBirthdate(4, 30, 1954); cout << "Start of the Gregorian calendar: " << gregorianStart << endl; cout << "The day of our final exam: " << finalExam << endl; cout << "Pi day: " << piDay << endl; cout << "My birthrate: " << myBirthdate << endl << endl; cout << "Please enter your birth date: "; Date birthdate; cin >> birthdate; cout << "Your birth date: " << birthdate << endl << endl; Date d(12, 30, 2000); ++d; // 12/31/200 ++d; // 1/1/2001 Date endDate(1, 1, 2001); cout << d << " and " << endDate; if (d == endDate) { cout << " are the same." << endl << endl; } else { cout << " are different" << endl << endl; } d = d + 31; // 2/1/2001 cout << d << endl << endl; d = d + 28; // 3/1/2001 cout << d << endl << endl; d = Date(2, 28, 2000); ++d; // 2/29/2000 cout << d << endl << endl; d = Date(2, 28, 1900); ++d; // 3/1/1900 cout << d << endl << endl; d = Date(2, 28, 1980); ++d; // 2/29/1980 cout << d << endl << endl; d = Date(2, 28, 2001); ++d; // 3/1/2001 cout << d << endl << endl; d = Date(11, 29, 1985); cout << "Enter a day: "; cin >> d; cout << d << endl << endl; return 0; }