I have couple error I don't understand them at all first case-insensitive I write strcasecmp and still have an error
bool check(const char *word)
{
int num = hash(word);
for (node *c = table[num]; c != NULL; c = c->next)
{
if(strcasecmp(c->word, word) == 0)
{
return true;
}
}
return false;
}
when I loop at all table the insensitive case solved
bool check(const char *word)
{
// int num = hash(word);
for (int i = 0; i < 101; i++)
{
for (node *c = table[i]; c != NULL; c = c->next)
{
if(strcasecmp(c->word, word) == 0)
{
return true;
}
}
}
return false;
}
but another error still not soved