+ 3

Is just \n easyer to read as endl

?

9th Jan 2018, 9:11 PM
Aldin/ Khalif
Aldin/ Khalif - avatar
6 Respuestas
+ 5
Performance note only: \n is faster endl is a template with extra I/O (it flushes the output stream) You may not notice a difference here until your output runs up against the time limit (then switching may get you about 50% more output).
9th Jan 2018, 11:57 PM
Kirk Schafer
Kirk Schafer - avatar
+ 12
They are do same thing so, you can choose what to use. \n is shorter... 😁
9th Jan 2018, 9:17 PM
Vukan
Vukan - avatar
+ 1
thanks
12th Jan 2018, 6:32 PM
Aldin/ Khalif
Aldin/ Khalif - avatar
0
thanks
9th Jan 2018, 9:23 PM
Aldin/ Khalif
Aldin/ Khalif - avatar
0
you know i‘m a beginer from Switzerland
9th Jan 2018, 9:23 PM
Aldin/ Khalif
Aldin/ Khalif - avatar
0
i will learn ICT and codeing
9th Jan 2018, 9:34 PM
Aldin/ Khalif
Aldin/ Khalif - avatar