I don\'t know how to use the hash function in C++, but I know that we can use hash_map. Does g++ support that by simply including #include
hash_map
#include
#include will get you next-standard C++ unique hash container. Usage:
std::tr1::unordered_map my_map; my_map["answer"] = 42; printf( "The answer to life and everything is: %d\n", my_map["answer"] );