C++ map的迭代器遍历

map m;

map::iterator it;

it = m.begin();

while(it != m.end())
{
it->first;
it->second;
it ++;
}

你可能感兴趣的:(技巧)