View Single Post
Old Nov 15th, 2006, 5:56 PM   #10
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 825
Rep Power: 4 The Dark is on a distinguished road
Re-read post #4. It explains what you need to do.

Also, it looks like your playOneRound function will always return 0.

This line at the end of the for h loop:
if ( strcmp (wordList[h], guess) != 0 )
will access outside of the wordList array if you enter a word that does not match any words in the wordlist. This may cause a problem on some systems.
The Dark is offline   Reply With Quote