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