Answers for "c++ iterate through constant list"

C++
0

c++ iterate through constant list

const list<int> numbers;
for(list<int>::const_iterator it = numbers.begin(); it != numbers.end(); it++)
    cout << *it << endl;
Posted by: Guest on March-12-2020

Browse Popular Code Answers by Language