笔记:哈希表代码实现

哈希表有冲突时,存入时有冲突处理,查找时,则是逆冲突处理,找到正确的哈希地址,并将该地址的数据读出。ios #include <iostream> #include <stdio.h> #include <malloc.h> #define HASHSIZE 12 /*定义哈希表长为数组的长度*/ #define NULLKEY -32768 using namespace std; str
相关文章
相关标签/搜索