Well, I read that endl 'flushes' the output buffer as opposed to \n.
Now what does that mean (In what way could that be useful)?
fesago90 0 Newbie Poster
Recommended Answers
Jump to PostWell, I read that endl 'flushes' the output buffer as opposed to \n.
Now what does that mean (how could that be useful)? Does it make it less or more efficient?endl calls the flush() method of the stream. That means more work done per use, and it's a sure …
Jump to Postno, endl should be the standard way to do things.
\n is not portable, it's a throwback to C.
Jump to Postno, endl should be the standard way to do things.
\n is not portable, it's a throwback to C.How is \n not portable?
All 11 Replies
Ravalon 62 Posting Whiz in Training
fesago90 commented: thanks ;) +1
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
jwenting 1,905 duckman Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Infarction 503 Posting Virtuoso
Ene Uran 638 Posting Virtuoso
Ravalon 62 Posting Whiz in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
fesago90 0 Newbie Poster
Rashakil Fol 978 Super Senior Demiposter Team Colleague
seanwalsh1984 0 Newbie Poster
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.