You don't want quotes around your calls to people1.name, people2.name, people1.grade and people2.grade in your print statements. That's why it's printing out "people1.name" "people1.grade", etc. instead of actually printing their name and grade. Just do
Code:
cout << people1.name;
instead when you're accessing a value when printing.
Users who have thanked Chocoholic_Jedi for this post: