hash function to retrieve name and corresponding ID with name as record key
i want to create a hash function in C++ which returns the surname of a student and his or her corresponding index number when his or her name is entered. the name will be used as the record key and the user should be able to initially enter only 10 names into the system. the array table and the hash 开发者_JAVA技巧table should also be outputted. i'm totally lost in how to accomplish this. Thanx
Wikipedia has a wealth of information on hash functions which should get you started.
If you have specific problems once you've had a crack at an answer, that's the time to come and ask for specific help here on StackOverflow.
精彩评论