Answers for "cpp loop through object"

C++
0

cpp loop through object

std::list<Student>::iterator it;
for (it = data.begin(); it != data.end(); ++it){
    std::cout << it->name;
}
Posted by: Guest on April-29-2020

Browse Popular Code Answers by Language