Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

using #define endl "\n" macro

Revision en1, by leafvillageninja, 2018-12-17 18:18:25

Isn't it a good idea to use a macro which replaces all the instances of endl with "\n" in all of my C++ programs to speed-up my code because doing so will stop unnecessary flushing of stdout?

Asking this because I have never seen anyone using such a macro.

Of course, in certain problems like the interactive ones, where I have to flush stdout, I will have to write fflush(stdout) separately.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English leafvillageninja 2018-12-17 18:18:25 427 Initial revision (published)