So, this is my solution. I still have to see the "book" solution

Code:

    #include<iostream>
    #include<string>
    using namespace std;

    int main()
    {
    	// introduce the game
    	constexpr int WORD_LENGTH = 9;
    	cout << "Welcome to Bulls and Cows, a fun word game. \n \n";
    	cout << "Can you guess the " << WORD_LENGTH;
    	cout << " letter isogram I'm thinking about? \n \n";
    	
    	// get a guess from the player
    	string Guess = "";
    	cout << "Enter your guess: ";
    	cin >> Guess;
    	cout << endl;
    	
    	// repeat the guess back to them
    	cout << "Your guess was: " << Guess << endl;
            return 0;
      }

And this is the output, I would say this worked as expected.

Privacy & Terms