13
How can I filter a class vector, studentList by its country from using algorithm? Meaning I only display the detail of students from country "America".
bool checkCountry (string x, string y)
{
return (x == y);
}
vector<Student> studentList;
studentList.push_back(Student("Tom", 'M', "91213242", "America"));
studentList.push_back(Student("Jessilyn", 'F', "98422333", "Europe"));