Endl or n?

endl or \n?

Attached: frog_01.jpg (640x628, 40K)

Other urls found in this thread:

youtube.com/watch?v=GMqQOEZYVJQ
twitter.com/NSFWRedditImage

using namespace std;
while (true)
cout

puts ("");

endl flush the buffer

System.out.println();

Attached: 1562022751158.jpg (450x399, 140K)

\n if c

>Suck.my.balls.and.fuck.java()

Attached: putthecoresinthebag.jpg (1000x563, 315K)

youtube.com/watch?v=GMqQOEZYVJQ

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 "

Attached: 160.png (500x350, 76K)

Jow Forumsn

Attached: 1541654547540.gif (728x720, 550K)

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?