#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 printStudent(student st) { cout << st.name << " "; printDate(st.birthday); cout << "Will graduate on "; printDate(st.gradDate); } void readDate(date &d) { cout << "Enter m d y: "; cin >> d.month >> d.day >> d.year; } void enterStudent(student &s) { cout << "Student Name: "; cin >> s.name; cout << "Birthday: "; readDate(s.birthday); cout << "gradDate: "; readDate(s.gradDate); } int main() { student x; enterStudent(x); printStudent(x); return 0; }