Im trying to understand the order the code is being executed in the PlayGame function and it is a little confising.
The code thats confusing me is: cout << "You entered: " << Guess << endl;
I expect “You entered:” to be output before the GetGuess function is called but its the opposite, why is that?
void PlayGame()
{
const int NUMBER_OF_TURNS = 5;
for (int count = 1; count <= NUMBER_OF_TURNS; count ++){
string Guess = GetGuess();
cout << "You entered: " << Guess << endl;
cout << endl;
}
}