+ 1
Why is it telling me that I'm wrong?
I had some trouble with some C++ code, so I clicked on that "see a solution" button. My code: #include <iostream> using namespace std; int main() { cout >> "My first C++ Code Coach!"; } Solution code: #include <iostream> using namespace std; int main() { cout >> "My first C++ Code Coach!"; } As you can see, it is the same exact thing, so I have no idea why it's saying that I'm wrong.
3 Réponses
+ 10
// Right is with „<<„ as follows:
cout << "My first C++ Code Coach!";
+ 6
Hi Trace Holstein, can you please use tags properly. Read the following 😉
https://code.sololearn.com/W3uiji9X28C1/?ref=app
+ 5
>> is used with cin for input
With cout use the insertion operator <<