// ola207 BY student name, CSCI 2170-sec, Due: mm/dd/yy // ID: DateType.cpp / Implementation file for "date" handling functions // RCS: $Revision$ $Date$ // AUTHOR: student name // INSTALLATION: MIDDLE TENNESSEE STATE UNIVERSITY // REMARKS: Illustrative "struct" example #include #include using namespace std; #include "DateType.h" void SetDate(DateType& date, int mo, int da, int yr) { date.month = mo; date.day = da; date.year = yr; } void PrintDate(DateType date) { cout << date.month << "/" << date.day << "/" << setfill('0') << setw(2) << date.year%100 << setfill(' ') << endl; } DateType NextDate(DateType date) { DateType newDate; int monthEnd; newDate = date; newDate.day++; // ... replace with remaining code ... return newDate; }