Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Language Tutorial (Part 1)
#9
(12-13-2009, 06:01 AM)se7en Wrote: "\n" is the same as endl

Actually, std::endl is the same as doing:
Code:
"\n" << std::flush

Since std::endl also flushes the current buffer to the screen, useful if you want to definitely make sure you see what you are pushing into the stream, but "\n" would probably be better if you were adding a lot of little strings in a loop since you could flush the buffer once you finish the loop instead of having std::endl flush the buffer after every iteration.
[Image: sig.php]
The little boat gently drifted across the pond exactly the way a bowling ball wouldn't.
Reply


Messages In This Thread
C++ Language Tutorial (Part 1) - by se7en - 11-01-2009, 04:45 AM
RE: C++ Language Tutorial (Part 1) - by Elektrisk - 11-01-2009, 05:27 AM
RE: C++ Language Tutorial (Part 1) - by se7en - 11-01-2009, 05:30 AM
RE: C++ Language Tutorial (Part 1) - by Skill - 11-01-2009, 05:37 AM
RE: C++ Language Tutorial (Part 1) - by M4X1MU5 - 12-12-2009, 05:25 AM
RE: C++ Language Tutorial (Part 1) - by se7en - 12-13-2009, 06:01 AM
RE: C++ Language Tutorial (Part 1) - by MrD. - 12-13-2009, 08:27 AM
RE: C++ Language Tutorial (Part 1) - by se7en - 12-13-2009, 08:30 AM
RE: C++ Language Tutorial (Part 1) - by MrD. - 12-13-2009, 07:25 PM
RE: C++ Language Tutorial (Part 1) - by awil - 12-13-2009, 07:36 PM
RE: C++ Language Tutorial (Part 1) - by awil - 12-14-2009, 02:39 AM
RE: C++ Language Tutorial (Part 1) - by geeK - 12-14-2009, 07:41 AM
RE: C++ Language Tutorial (Part 1) - by se7en - 12-14-2009, 07:44 AM
RE: C++ Language Tutorial (Part 1) - by nextlive - 12-25-2009, 06:30 AM
RE: C++ Language Tutorial (Part 1) - by VIRUS22 - 12-11-2010, 11:57 AM
RE: C++ Language Tutorial (Part 1) - by Anxiety® - 12-11-2010, 02:40 PM
RE: C++ Language Tutorial (Part 1) - by Bursihido - 12-11-2010, 04:05 PM
RE: C++ Language Tutorial (Part 1) - by Break - 12-23-2010, 02:00 PM
RE: C++ Language Tutorial (Part 1) - by versx - 02-10-2011, 12:45 PM
RE: C++ Language Tutorial (Part 1) - by Anarchy - 04-02-2011, 09:52 PM
RE: C++ Language Tutorial (Part 1) - by aggouras - 04-23-2011, 11:15 AM
RE: C++ Language Tutorial (Part 1) - by dan08 - 04-26-2011, 09:27 AM
RE: C++ Language Tutorial (Part 1) - by rootkit - 04-26-2011, 12:28 PM
RE: C++ Language Tutorial (Part 1) - by モrainee - 05-14-2011, 02:20 AM
RE: C++ Language Tutorial (Part 1) - by LiamLC - 06-17-2011, 03:54 PM
RE: C++ Language Tutorial (Part 1) - by ₠o™ - 09-10-2011, 05:05 AM
RE: C++ Language Tutorial (Part 1) - by jingo - 10-04-2011, 06:12 PM
RE: C++ Language Tutorial (Part 1) - by g0dspeak - 10-05-2011, 06:03 PM
RE: C++ Language Tutorial (Part 1) - by John. - 10-05-2011, 06:28 PM
RE: C++ Language Tutorial (Part 1) - by Credit - 10-22-2011, 09:16 PM
RE: C++ Language Tutorial (Part 1) - by Ignite. - 11-21-2011, 04:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sorting And Searching Algorithm[Any language] Jitty 0 690 10-29-2011, 08:15 AM
Last Post: Jitty
  Is c++ The Best Programming Language to Learn some of Java schneweis 23 5,281 08-07-2011, 11:14 AM
Last Post: [Dr.House]
  Registry Operations using Win32 - Part 2 se7en 0 882 03-13-2011, 06:46 AM
Last Post: se7en
  Registry Operations using Win32 - Part 1 se7en 0 952 03-13-2011, 06:42 AM
Last Post: se7en

Forum Jump:


Users browsing this thread: 7 Guest(s)