#include<iostream>
#include<cstring>
#include<string>
#include<tr1/unordered_map>//注意这里
using namespace std;
using namespace std::tr1;//还有这里
//即可使用
int main(){
unordered_map <string,int> hash;
hash["aa"]=100;
cout<<hash["aa"];
return 0;
}
devcpp中使用unordered_map
最新推荐文章于 2024-03-25 20:06:51 发布