1.博主最近在写哈希表的建立与输出来实现电话号码查询功能
2.写完后运行验证时发现如下错误
3
4.代码如下:
#include<iostream>
using namespace std;
#define Vnum 8
#define num 2
typedef struct Node{
int key;
string name;
string number;
string address;
Node *next;
}*pointer;
typedef Node Hashlist[Vnum];
void creatHash(Hashlist&hash){
pointer p=NULL;
for(