// ola207 BY student name, CSCI 2170-sec, Due: mm/dd/yy // PROGRAM ID: DateTypeExample.cpp / An illustrative test harness // RCS: $Revision$ $Date$ // AUTHOR: student name // INSTALLATION: MIDDLE TENNESSEE STATE UNIVERSITY // REMARKS: This program exercises/tests the "DateType" functions. #include using namespace std; #include "DateType.h" int main() { DateType today, tomorrow, valentinesDay; cout << "DateTypeExample by student name \n"; SetDate(today,2,13,2016); // today.month = 2; // today.day = 13; // today.year = 2016; PrintDate(today); // should print 2/13/16 tomorrow = NextDate(today); PrintDate(tomorrow); // should print 2/14/16 valentinesDay = tomorrow; PrintDate(valentinesDay); // should print 2/14/16 SetDate(today,12,31,1999); tomorrow = NextDate(today); PrintDate(tomorrow); // should print 1/1/00 SetDate(today,2,28,1900); tomorrow = NextDate(today); PrintDate(tomorrow); // should print 3/1/00 SetDate(today,2,28,2000); tomorrow = NextDate(today); PrintDate(tomorrow); // should print 2/29/00 SetDate(today,2,28,2017); tomorrow = NextDate(today); PrintDate(tomorrow); // should print 3/1/17 SetDate(today,2,28,2016); tomorrow = NextDate(today); PrintDate(tomorrow); // should print 2/29/16 return 0; }