Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main(int number)
- {
- //Introduce the game
- constexpr int WordLength = 5;
- cout << "Welcome to Bulls and Cows!" << endl;
- cout << "Can you guess the word I'm thinking of?.. It's a ";
- cout << WordLength;
- cout << " letter word" << endl;
- //get a guess from the player
- cout << "Your guess: ";
- string Guess;
- cin >> Guess;
- //repeat guess back to player
- cout << "You guessed: ";
- cout << Guess << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment