cm0002@lemmy.world to Programmer Humor@programming.dev · 5 months agoDoes this exist anywhere outside of C++?lemmy.mlimagemessage-square47fedilinkarrow-up182arrow-down114cross-posted to: [email protected]
arrow-up168arrow-down1imageDoes this exist anywhere outside of C++?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 5 months agomessage-square47fedilinkcross-posted to: [email protected]
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up4·edit-25 months agoSimple. \n when you just want a newline. endl when you need to flush at the moment. Useful in case you are printing a debug output right before some function that might do bed stuff to buffers. Edit: I wrote println instead of endl somehow. Guess I need more downtime
Simple.
\n
when you just want a newline.endl
when you need to flush at the moment.Useful in case you are printing a debug output right before some function that might do bed stuff to buffers.
Edit: I wrote
println
instead ofendl
somehow. Guess I need more downtime