Can anyone give me any insight on how to perform a lookup on a key/definition hashtable?
This is the method that I am trying to use to perform the lookup:
const Object & lookup( const HashedObj & key ) const
{
return theLists[ hash( key ) ];
}
From what little I understand about this, I believe I have to perform a hash on the given key to get the key/definition pair? I've been trying several different things to get this to work with no luck. I am getting the following error on the above method:
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int