Section 2 lesson 24

Hello, I was wondering if someone could help me I keep getting error (c3861 GetGuess identifier not found) if someone could assist me in this that would be great thank you.
#include
#include

using namespace std;

//introduction of the game
void Print_intro() {
constexpr int Word_Length = 5;
cout << “Welcome to Bulls Ands Cows\n”;
cout << “can you guess the " << Word_Length;
cout << " letter isogram im thinking of?\n”;
return;
}

void PlayGame()
{
//loop for number of turns asking for guesses
constexpr int Number_of_turns = 5;
for (int count = 1; count <= Number_of_turns; count++) {
string Guess = GetGuess();
cout << "Your guess was: " << Guess << endl;
}

}
string GetGuess()
{
//get a guess from the player
cout << "enter guess now: ";
string Guess = “”;
getline(std::cin, Guess);
return Guess;
}

// the entry point for our application
int main() {

Print_intro();
PlayGame();
GetGuess();
return	0; //exits the game

}

Privacy & Terms