cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
i fixed it
i fixed it
Jan 11, 2015 at 1:43pm UTC
pablo118
(1)
cout<< "i fixed it\n";
Last edited on
Jan 11, 2015 at 7:45pm UTC
Jan 11, 2015 at 3:09pm UTC
Konstantin2
(142)
In line 72 you compare addresses of strings, not their content. use
strcmp(wordToGuess, wordSoFar)
.
Or better use "string" class, not chars array. I.e.
string wordSoFar;
, not
char
wordSoFar [12];
Topic archived. No new replies allowed.