您的位置:首页 > 其它

vs2008使用hashmap

2013-10-21 20:14 155 查看
关于hashmap的介绍:http://blog.chinaunix.net/uid-23480159-id-2421724.html

但是,在vs2008中使用hashmap时,出现如下错误:

error C2065: “hash_map”: 未声明的标识符。

原来,hash_map目前是vs2008的一个扩展,并没有在标准的c++中。要想使用hash_map,需要using namespace stdext;但是,这很可能产生命名空间冲突,可以加上:using stdext::hash_map.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: