Just my solution to the get input/return input challenge in S2L21
Code:
#include <iostream>
#include <string>
int main() {
//Introduce the game
constexpr int WORD_LENGTH = 5;
std::cout << "Welcome to Bulls and Cows, a fun word game!" << std::endl;
std::cout << "Can you guess the " << WORD_LENGTH <<" letter isogram I'm thinking of?" << std::endl;
//Get a guess from the user
std::string str_player_guess = "";
std::cout << "Please enter a guess: ";
std::cin >> str_player_guess;
//Repeat gues back to user
std::cout << "Your guess was: " << str_player_guess << std::endl;
return 0;
}