+ 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.

28th Apr 2023, 12:57 PM
Trace Holstein
Trace Holstein - avatar
3 Réponses
+ 10
// Right is with „<<„ as follows: cout << "My first C++ Code Coach!";
28th Apr 2023, 1:03 PM
JaScript
JaScript - avatar
+ 6
Hi Trace Holstein, can you please use tags properly. Read the following 😉 https://code.sololearn.com/W3uiji9X28C1/?ref=app
28th Apr 2023, 1:28 PM
Ausgrindtube
Ausgrindtube - avatar
+ 5
>> is used with cin for input With cout use the insertion operator <<
28th Apr 2023, 1:12 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar