05.09.2011, 04:13
Quote:
OK, one tip:
The hash function can cause collisions. This means that two or more different keys have the same hash value. ==> You need to use strcmp to also check names AFTER comparing the hash values. This won't affect your speed generally because you will probably execute the strcmp only once. |