标签:
遍历map
it->first it->second
#include<map> #include<string> #include<iostream> int main() { map<string,int> words; map<string,int>::iterator it=words.begin(); for(;it!=words.end();++it) cout<<"key:"<<it->first <<"value:"<<it->second<<end1; return 0; }
标签:
原文地址:http://www.cnblogs.com/XingyingLiu/p/5087619.html