String not working

string does not work i try’d to look on google for a solution but couldn’t find anything

I also try’d looking for another discussion relative to my problem but non solved it

I try’d reinstalling visual studio and i even moved to 2017 and still dint work

i don’t know if its a bug or if i am doing something wrong

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Cow Bull Game
#include
#include

    using namespace std;

    int main()
    {
    	// game introduction
    	constexpr int WORD_LENGTH = 5;
    	cout << "welcom to bulls and cows\n";
    	cout << "can you guess the " << WORD_LENGTH;
    	cout << " letter isogram i'm thinking of?\n";
    	cout << endl;

    	// get a guess from the player
    	cout << "Enter your guess"
    	string Guess = "";
    	cin >> Guess;
     
    	// repeat the guess back to them
    	cout << "your guess was " << Guess << endl;
    	
    	cout << endl;

    	return 0;
    }

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

there is semicolon missing at cout << “Enter your guess”

Regards,
urška

WOW how dit i mis that.
Thx for the help.

Haha no problem!

Usually it is really simple stuff we waste majority of our time on, looking at code and thinking it is something super complex that has gone wrong :stuck_out_tongue:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms