// 22.5HV2 Software Engineering II // Unit 4 Exercise 2 #include #include "person.h" ostream& operator<<(ostream& ostr, const Person& p) { ostr << setw(7) << "Name: " << p.name << endl; if (p.sex == 'm') ostr << setw(7) << "Sex: " << "male" << endl; else ostr << setw(7) << "Sex: " << "female" << endl; ostr << setw(7) << "dob: " << p.dob << endl; return ostr; }