what does std::endl represent exactly on each platform?

后端 未结 5 1258
孤独总比滥情好
孤独总比滥情好 2021-01-11 12:01

Thinking about UNIX, Windows and Mac and an output stream (both binary and text),

What does std::endl represent, i.e. ,

5条回答
  •  北海茫月
    2021-01-11 12:55

    Looks like your question got munged. Each command ends in []? For an over-the-wire protocol, I'd suggest using a delimiter that doesn't vary by platform. std::endl could resolve to '\r\n' or '\n\r' depending on the platform.

提交回复
热议问题