+ 3
Is just \n easyer to read as endl
?
6 Respostas
+ 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).
+ 12
They are do same thing so, you can choose what to use. \n is shorter... 😁
+ 1
thanks
0
thanks
0
you know i‘m a beginer from Switzerland
0
i will learn ICT and codeing