+ 1
important
wyh insted of cout << "Hello world! \n\n"; cout << "I love programming!"; we dont write it in only one line ???
1 Resposta
+ 6
In fact, You can. It's the matter of preference to put it this way
cout << "Hello world! \n\nI love programming!";
or this
cout << "Hello world! \n\n"
<< "I love programming!";
or this
cout << "Hello world! \n\n";
cout << "I love programming!";
But as you see, the third one uses an additional `cout` object which can be dropped, for the most part.