Any think they could attempt this, or give some pointers on it:

write a simple hash function using modulo division as the hash methods.

Show some effort first please.

Hint:
To get an ideal hash index via modulus just do this:

int iIndex(x % MAX)

where x is the value that your finding an index for, and MAX is the maximum index you want (ie the max size of the hash table array)

I'm working on it now.

Ok great, just post the code your having troubles with and I will help you.

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.