3.7.5 进入游戏主循环
接下来,程序进入游戏主循环。
while ((guess != theWord) && (guess != "quit")) { if (guess == "hint") { cout << theHint; } else { cout << "Sorry, that's not it."; } cout <<"\n\nYour guess: "; cin >> guess; }