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
Last edited by Nick Evan; Mar 26th, 2010 at 9:41 am.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Offline 4,132 posts
since Oct 2006