摘要: 主要有两种方法 一种是auto: map<int, int> mp; for (auto p : mp) { cout << p.first << ' ' << p.second << endl; } 另一种是iterator迭代器: map<int, int> mp; map<int, int>: 阅读全文
posted @ 2022-03-27 19:17 riz9 阅读(2607) 评论(0) 推荐(0) 编辑