View Single Post
Old Nov 15th, 2006, 9:32 PM   #16
aznballerlee
Hobbyist Programmer
 
Join Date: Nov 2006
Posts: 111
Rep Power: 2 aznballerlee is on a distinguished road
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??
aznballerlee is offline   Reply With Quote