Does endl do the same thing as %n in java and print the platform dependent end of line ('\n', \n\r' or '\r')? If not then is there anything similar in c++.

>Does endl do the same thing as %n in java and print
>the platform dependent end of line ('\n', \n\r' or '\r')?

If the stream is text oriented rather than binary, yes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.