Skip to main content
5 events
when toggle format what by license comment
Dec 15, 2014 at 18:42 comment added user59064 I have the flushing/non-flushing thing (normally) in the 'true but irrelevant' box. Though I admit it could (in principle) matter in an I/O intensive situation. In my experience by the time you've got there you've moved away from <iostream> to lower level handling. However I accept the points. Upvoted.
Dec 15, 2014 at 18:31 comment added Jamal @SimonAndréForsberg: You are correct. It is okay to have it at the end, and not used repeatedly.
Dec 15, 2014 at 18:30 comment added RPiAwesomeness I actually was wondering about just that. The tutorial book I'm following mixed them as well & I was kinda confused about which to use. I looked around and it seems like using << std::endl flushes the buffer (or something along those lines) and so using \n is a slightly higher-performance way to do this, especially if you aren't too worried about data integrity.
Dec 15, 2014 at 18:30 comment added Simon Forsberg Doesn't the use of std::endl flush the output buffer or something? Or have I just dreamt having read that?
Dec 15, 2014 at 18:27 history answered user59064 CC BY-SA 3.0