Hash table - problem

This is my first attempt at a hash table data structure. My problem is how can i change the stuct Entry_t for the class Hash_map so that Entry wouldn't be invalidated type. Also, i get this error "error C4430: missing type specifier - int assumed" for my function pointer declaration...

- Drop the typedef before the Hash_Map class declaration.
- If you're going to pass references to the functions, make them const
- You can't assign your member variable to the local variable "Array", as it will be destroyed when the function completes.

You're basically doing the same thing here. First of all, "key" is just a temporary, and second you really shouldn't be forming a pointer to the string the user passes in *anyway*. Just declare the member as a plain std::string.

- Your insert function looks confused. First of all, you don't need to iterate through the array. That is, after all, the whole purpose of using a hash function! Next, you're just overwriting the current node. You just need to grab the node at Primary[h], iterate to the end, and add the new node.
- Your delete function is equally broken. Do similar to the above method, but when/if you find a matching node, you'll need to point it's predecessor to the next node, and then delete the current one, if that makes sense.

Sorry, but that's all I've got time for right now. Fix those errors and you'll be a little closer to a correct solution, at least.

thanks for the help, I fixed most of the errors, but then I get a linker error " [Linker error] undefined reference to `Hash_Map<int>::Hash_Map(int)' " and the other members... when i made a Main test file