Section02 lecture 19 screen shot

#include

#include

using namespace std;

int main()
{
// introduce the game

constexpr int WORD_LENGTH = 5;
cout << "Welcome to Bulls and Cows, a fun word game" << endl;
cout << "can you guess the " << WORD_LENGTH;
cout << " letter isogram I am thinking of?" << endl;

// gets a guess from player

// repeat the guess back to them

string Guess = "";
cout << "What is your guess?" << endl;
cin >> Guess; 
cout << "Your guess is " << Guess;
cout << endl;

Privacy & Terms