- #1
Lancelot59
- 646
- 1
Homework Statement
We had to basically modify a few variables in the given code and then shoot it out with a valid output. I decided to have some fun with it.
However I get a strange syntax error, here is the code:
Code:
//Conditionals controlling the cookie response output
if(cookies == "Yes")
{
cookieresponse = "Hooray! Cookies are awesome! :D";
}
else
{
cookieresponse = "YOU MONSTER! HOW CAN YOU NOT LIKE COOKIES!? D:";
}
cout << cookieresponse;
<< endl;
return 0;
}
VS says I'm missing a ";" before the "<<" of the endl command. What's happening here. According to my book I've done it correctly.