1、序列for循环

map<string,int> m{{"a",1},{"b",2},{"c",3}}

for(auto p:m)

{

cout<<p.first<<":"<<p.second<<endl

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2021-11-12
  • 2021-06-12
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2021-08-18
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案