Okay... so i was looking into EternallyConfuzzled's website. The hash part.

I think it's written for C, but im trying to implement this stuff in C++.

How would i convert this code?

Thanks!Code:unsigned djb_hash ( void *key, int len ) 2...{ 3 unsigned char *p = key; 4 unsigned h = 0; 5 int i; 6 7 for ( i = 0; i < len; i++ ) 8 h = 33 * h + p[i]; 9 10 return h; 11}