Hash Table Question

I'm trying to create a hash table, but for some reason its not working. Maybe it has some logic error. I'm trying to do linear probing.

Last edited on
What does your hash(const string&) look like?
I guess this code should show you some error. You have only one return statement(return -1), which is positioned in "if...else". If status[probe] == 0, then your function won't return anything at all, which means it will return trash, afaik.
Last edited on
Topic archived. No new replies allowed.