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...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.