[ ]$ g++ -Wall -g hashphonedirectory.cpp -o hashphonedirectory
hashphonedirectory.cpp: In member function âint File::Hash(char*)â:
hashphonedirectory.cpp:16: warning: comparison between signed and unsigned integer expressions
hashphonedirectory.cpp: At global scope:
hashphonedirectory.cpp:214: warning: ISO C++ forbids declaration of âmainâ with no type
-------------------------------------------------------
CODE ERROR

int File::Hash(char *
{
for(xorin = 0; strlen( >= unit; s+= unit) //xoring
xorin ^= * (unsigned *) s;

if(strlen (s) ) {
strcpy ((char *)&remainder, s);//character
xorin ^= remainder;

}
return (xorin % tableSize) * bucketSize * recordLen;

}