1、序列for循环
map<string,int> m{{"a",1},{"b",2},{"c",3}}
for(auto p:m)
{
cout<<p.first<<":"<<p.second<<endl
}
1、序列for循环
map<string,int> m{{"a",1},{"b",2},{"c",3}}
for(auto p:m)
{
cout<<p.first<<":"<<p.second<<endl
}
转载于:https://www.cnblogs.com/xietianjiao/p/6143972.html