You need overloading the 'operator<<' function which handles the ostream. That means in your case that you need to implement std::ostream& operator<< ( std::ostream&, const Person_Info& )
Here an example how you could do it. If e.g. Person_Info would be:
1 2 3 4 5
class Person_Info {
public:
string name;
int age;
}
Then your overloaded operator<< function should be look like: