I am asking the same doubt here, why doesn’t dosa show in the hashmap after it has been added in the program?
Sorry i shared the code ((
i have doubt in the operator function
T *search(string key)
{
int idx = hashfn(key);
node<T> *temp = table[idx];
while (temp != NULL)
{
if (temp->key == key)
{
return &temp->value;
}
}
return NULL;
}
here inside while loop you forgot to move temp ahead
temp = temp->next;