do
{
if (current->words==temp)
{
current->numWords++;
break;
}
check=check->next;
}while (check!=NULL);
else
{
You've nested your loops wrong:
do a
if b
end a
else b
end b
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403