A simple example of hashtable source code
I was looking at that example snippet. I tried compiling it but it didnt work. My compiler complains about the node declaration part: Node defined as both function and variable
Notice the second node is defined as a function. Thats what I was confused about as well... while looking at the code, and so decided to test it out.
Node(const char* Key1 = "\0", const char* fName = "\0",
const char *tele ="\0", const double sal = 0.0 )
Salary = sal;
Tax = 0.005 * Salary;
next = NULL;