1#include <string>
2
3struct Student {
4 std::string name;
5 int age;
6 double finalGrade;
7
8 std::string toString() {
9 return "Name: " +
10 name +
11 "\n Age: " +
12 std::to_string(age) +
13 "\n Final Grade: " +
14 std::to_string(finalGrade);
15 }
16};
17