+ 1

important

wyh insted of cout << "Hello world! \n\n"; cout << "I love programming!"; we dont write it in only one line ???

22nd Nov 2018, 8:23 AM
Ramyar
Ramyar - avatar
1 Respuesta
+ 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.
22nd Nov 2018, 8:30 AM
Babak
Babak - avatar