Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ loop through list

std::list<Student>::iterator<Student> it;
for (it = data.begin(); it != data.end(); ++it) {
    std::cout<<(*it)->name;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #list
ADD COMMENT
Topic
Name
3+6 =