Do you think I should declear myHashFunction inside the private section?
I think those code from you should work
Code:int hashFunc ( char *key ) { int res = 0; while ( *key ) res += *key++; return key % 20; }
Do you think I should declear myHashFunction inside the private section?
I think those code from you should work
Code:int hashFunc ( char *key ) { int res = 0; while ( *key ) res += *key++; return key % 20; }