C++ STL map 遍历 #include#include#includeusing namespace std;int main(){ map m; m["a"]=1; m["b"]=2; m["c"]=3; map::iterator it; for(it=m.begin();it!=m.end();++it) co C++ 2023-09-17 154 点赞 2 评论 233 浏览