今天程序要用到hash_map,头文件忘记怎么写,一直提示未定义的标识符hash_map
头文件可以这么写
#include<iostream>
#include<hash_map>
using namespace std;
using namespace stdext;
using stdext::hash_map;
void main()
{
hash_map<int,int> Hashmap;
}
c++新手,写的可能不是很合适,欢迎指摘
今天程序要用到hash_map,头文件忘记怎么写,一直提示未定义的标识符hash_map
头文件可以这么写
#include<iostream>
#include<hash_map>
using namespace std;
using namespace stdext;
using stdext::hash_map;
void main()
{
hash_map<int,int> Hashmap;
}
c++新手,写的可能不是很合适,欢迎指摘