Hellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 9 天前Does this exist anywhere outside of C++?lemmy.mlimagemessage-square60fedilinkarrow-up1163cross-posted to: programmer_humor@programming.dev
arrow-up1163imageDoes this exist anywhere outside of C++?lemmy.mlHellfire103@lemmy.ca to Programmer Humor@lemmy.mlEnglish · 9 天前message-square60fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarevapeloki@lemmy.worldlinkfedilinkarrow-up39·9 天前std::endl is used in output streams in C++ to end the line, using the os specific line termination sequence, and flush the buffer. The later one is a performance issue in many cases, why the use of "\n" is considered preferred
std::endl
is used in output streams in C++ to end the line, using the os specific line termination sequence, and flush the buffer.The later one is a performance issue in many cases, why the use of
"\n"
is considered preferred