Actually I feel that's the above is totally wrong.
Here's my newer code:
bool (hasUpperCaseLetters(guess))
{
if (isupper(guess[b]))
return true;
}
bool (doesNotExist (guess))
{
if (strcmp (wordList[h], guess) != 0)
return true;
}
for (int b=0; b < strlen(guess); b++)
{
if (hasUpperCaseLetters (guess))
cout << "Your probe must be 4-6 letters long" << endl;
break;
if (doesNotExist (guess))
cout << " I don't know that word" << endl;
break;
// stuff i had in my function
}
this is my new method .. I hope this can work out.
Intuitively, do you think this would work??