When I build my program it just outputs “(11db)”.
Here’s the code
//
// main.cpp
// BullCowGame
//
// Created by hunter yeago on 10/5/16.
// Copyright © 2016 hunter yeago. All rights reserved.
//
#include
#include
using namespace std;
void PrintIntro();
string GetGuessAndPrintBack();
//The entry point for our application or something
int main(){
PrintIntro();
GetGuessAndPrintBack();
GetGuessAndPrintBack();
cout << endl;
return 0;
}
//get a guess from the player
string GetGuessAndPrintBack(){
string Guess = "";
cout << "Enter your guess: ";
getline(cin,Guess);
//Print guess back
cout << "Your guess was: " << Guess;
cout << " Enter your guess: ";
getline(cin,Guess);
//print guess back
cout << "Your guess was: " << Guess;
return Guess;
}
void PrintIntro(){
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?\n”;
return;
}