typedef struct
{
char **elem;
int count;
int sizeindex;
}HashTable;
int Init(HashTable &H)
{
H.elem = (char * *)malloc(NUM * sizeof(char *)); <-
H.count = 0;
H.sizeindex = 10;
return 0;
}
h:\数据结构\hashtable_线性探测法.cpp(16) : error C2143: syntax error : missing ')' before ';'
h:\数据结构\hashtable_线性探测法.cpp(16) : error C2059: syntax error : ')'
h:\数据结构\hashtable_线性探测法.cpp(16) : error C2100: illegal indirection
16行已用<-指出
那么就要改掉前面Struct中的*elem了,但是好像还是这么3个错