#include <iostream>
#include <algorithm>
#include <unordered_map>
using namespace std;
int main()
{
unordered_map<int, int> hash;
hash[1] = 2;
hash[3] = 6;
for(auto e : hash) cout << e.first << " " << e.second << endl;
}
<unordered_map>的first、second
最新推荐文章于 2024-06-30 15:07:14 发布