64,654
社区成员
发帖
与我相关
我的任务
分享
//别用VC6
#include <cstdlib>
#include <iostream>
#include <hash_map.h>
using namespace std;
int main(int argc, char *argv[])
{
hash_map<int,int> h;
h.insert(pair<int,int>(1,2));
cout<<h.size()<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
详细解说STL hash_map系列
详细解说STL hash_map系列
0 为什么需要hash_map
1 数据结构:hash_map原理
2 hash_map 使用
2.1 一个简单实例
2.2 hash_map 的hash函数
2.3 hash_map 的比较函数
2.4 hash_map 函数
3 相关hash容器
4 其他
4.1 hash_map和map的区别在哪里?
4.2 什么时候需要用hash_map,什么时候需要用map?
4.3 如何在hash_map中加入自己定义的类型?
4.5为什么hash_map不是标准的?
4.6 有学习使用hash_map的建议吗?
5 参考文章:
条条大路通罗马,为什么你不随便选