endl or \n?
Endl or n?
Other urls found in this thread:
using namespace std;
while (true)
cout
puts ("");
endl flush the buffer
System.out.println();
\n if c
>Suck.my.balls.and.fuck.java()
based
This.
Use '\n" if you don't want performance issues
Write "\n" over '\n' is a crime
more like
suckMyBallsAndFuckJavaAbstractFactoryDelegateBuilderCompositeComponentHandlerEventListener()
unless you actually want to print something instantaneously.
also, what kind of program prints so much that flushing becomes a bottleneck
loggers
>' \n "
Jow Forumsn
CRLF is cute
Endl is 60 times slower than /n because it flushes every time
['p','r','i','n','t']
return 0;
Console.WriteLine();
Sir.doOneThing();
Do you want to flush the buffer?
- Yes: use endl
- No: use \n
cout in real project?