My solution

#include
#include

using namespace std;

int main()
{
//introduce the game to the player
constexpr int WORD_LENGTH = 9;

cout <<"Welcome to Bulls and Cows, a fun word game!\n";
cout << "Can you guess the " <<WORD_LENGTH;
cout << " letter isogram I'm thinking of? ";

//get a guess from the player
string Guess = "";
cin >> Guess;

//repeat the guess back to the player
cout << "\nYou guessed " <<Guess;
cout << ".";
	return 0;
}

Privacy & Terms