for (itr = gquiz1.begin(); itr != gquiz1.end(); ++itr) {
cout << '\t' << itr->first
<< '\t' << itr->second << '\n';
}
What is begin() function returns?
begin() function returns an iterator pointing to the first element in the container
Comments
Leave a comment