#include #include #include using namespace std; int main() { map ma; map mb; ma["01"] = "wz"; ma["02"] = "sust"; map::iterator it = ma.begin(); for(;it != ma.end();++it) { cout<first<<" "<second<first] = it->second; } map::iterator it2 = mb.begin(); for(;it2 != mb.end();++it2) { cout<first<<" "<second< 分享文章:小代码map1导入map2c++ 网页URL:http://chengdu.cdxwcx.cn/article/jpjcjj.html