Answers for "cpp goiver all the map values"

C++
1

cpp goiver all the map values

map<string, int>::iterator it;

for (it = symbolTable.begin(); it != symbolTable.end(); it++)
{
    std::cout << it->first    // string (key)
              << ':'
              << it->second   // string's value 
              << std::endl;
}
Posted by: Guest on December-21-2020

Code answers related to "cpp goiver all the map values"

Browse Popular Code Answers by Language