#include
#include
std::string Guess = " ";
void printIntro()
{
//introduce the game
constexpr int WORLD_Length = 5;
std::cout << "Welcome to bulls and Cows " << std::endl;
std::cout << "Can you guess the " << WORLD_Length;
std::cout << " Letter isogram Im thinking of ?\n " << std::endl;
return;
}
void GetGuess()
{
std::cout << " Guess the word sir? " << std::endl;
std::getline(std::cin, Guess);// it ignore spaces and read it two words instead of one
return;
}
void printRepeatGuess() {
std::cout << " your guess is: " << Guess << std::endl;
return;
}
//the entry point for our application
int main()
{
printIntro();
GetGuess();
printRepeatGuess();
//repeat the guess back to them
return 0;
}