#include #include "date.h" using namespace std; // show Date member functions int main() { Date today; Date republic(10,29,1923); Date million(1000000); Date y2k(1,1,2000); Date one = million - 999999; cout << "today: " << today << " and " << today.Absolute() << " days have been passed since " << one << endl; cout << "Republic of Turkey has been founded on: " << republic << endl; cout << "millionth day: " << million << endl; cout << y2k << " was a " << y2k.DayName() << endl << endl; cout << "the current month is " << today.MonthName() << " and there are " << today.DaysIn() << " days in it" << endl; Date republic2015(republic.Month(), republic.Day(), 2015); today++; //or today = today + 1; cout << "day one: " << one << " was a " << one.DayName() << endl; cout << "republic2015: " << republic2015 << " " << republic2015.DayName() << endl; cout << "tomorrow: " << today << endl; return 0; }