#include #include using namespace std; struct date { int day, month, year; }; struct student { string name; date birthday; date gradDate; }; void printDate(date d) { cout << d.month << "/" << d.day << "/" << d.year << endl; } void printDateJap(date d) { cout << d.year << " " << d.month << " " << d.day << endl; } void printStudent(student st) { cout << st.name << " "; printDate(st.birthday); cout << "Will graduate on "; printDate(st.gradDate); } int main() { student x; x.name = "Max"; x.birthday.day = 1; x.birthday.month = 1; x.birthday.year = 1900; x.gradDate.day = 1; x.gradDate.month = 1; x.gradDate.year = 2010; printStudent(x); date d; d.day = 22; d.month = 2; d.year = 2005; printDate(d); printDateJap(d); return 0; }