I need some help… I swear everything is right as I was following the udemy tutorial but obviously I missed something. If somebody else could get their eyes on it they might be able to find a problem. Help!
This is what I have:
#include
#include
using namespace std;
void printintro
std::string GetGuess
//The entry point for our application
int main()
{
PrintIntro();
GetGuess();
cout << endl;
return 0;
}
void PrintIntro(){
// Introduce the game
constexpr int WORLD_LENGTH = 5;
cout << “Welcome to Bulls and Cows, a fun word game.\n”;
cout << “Can you guess the " << WORLD_LENGTH;
cout << " letter word I am thinking of?\n”;
cout << endl;
return;
}
string GetGuess() {
// get a guess from the player
cout << "Enter your guess: ";
string Guess = "";
getline(cin, Guess);
// repeat the guess back to them
cout << "Your guess was: " << Guess << endl;
cout << endl;
return Guess;
}
I really appreciate it, thanks!