Hi,
How to achieve hashing in C++? Can you explain this giving a small example?
rgds
Better see:
http://www.partow.net/programming/hashfunctions/
Download freeware C++ hash functions source codes (for std::string) from this site (~3Kb zip):
http://www.partow.net/downloads/GeneralHashFunctions_-_CPP.zip
Download PDF chapter 18 (see 18.2, hash function for char arrays) - ~73 Kb:
http://www.uow.edu.au/~nabg/ABC/C18.pdf
See also this textbook on C++ programming:
http://www.uow.edu.au/~nabg/ABC/ABC.html
Look at hash functions written by professionals...
You may also have a look to the implementation of the Boost C++ library :
http://www.boost.org/doc/libs/1_35_0/doc/html/hash.html
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.