SyntaxFix
Write A Post
Hire A Developer
Questions
It looks like you're comparing strings incorrectly. To compare a string to another, use the std::string::compare function.
std::string::compare
Example
while ((wrong < MAX_WRONG) && (soFar.compare(THE_WORD) != 0))