cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
endl? \n?
endl? \n?
Feb 11, 2012 at 1:38pm UTC
atjm88
(201)
Hi, is there any different between "endl" and "\n"? Are they the same? Thanks...
Feb 11, 2012 at 1:46pm UTC
Peter87
(11234)
endl calls flush.
Feb 11, 2012 at 1:58pm UTC
atjm88
(201)
Thanks, their function the same?
Feb 11, 2012 at 2:09pm UTC
Lynx876
(742)
Here's some info on it:
http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.7
Feb 11, 2012 at 2:14pm UTC
atjm88
(201)
Hi, thanks for the link, can I know what does flush means actually? ^^
Feb 11, 2012 at 2:23pm UTC
Lynx876
(742)
http://www.cplusplus.com/reference/iostream/ostream/flush/
(:
Topic archived. No new replies allowed.