View Poll Results: Pick a operator

Voters
34. You may not vote on this poll
  • "\n"

    17 50.00%
  • <<endl;

    17 50.00%

"\n" VS <<endl;

This is a discussion on "\n" VS <<endl; within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Originally posted by Sebastiani Well, obviously. But in most cases, stout is directed to a terminal, and anyway, if otherwise, ...

  1. #31
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by Sebastiani
    Well, obviously. But in most cases, stout is directed to a terminal, and anyway, if otherwise, the programmer would know in advance (hopefully!).
    not even close. you never used linux much i assume (windoze users dont do this sort of thing much), but stdin and stdout are regularly redirected all over the place
    Last edited by moi; 11-12-2002 at 06:53 PM.
    hello, internet!

  2. #32
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    no-one, I have to know where you get those avatars. The dancing dog was hilarious and the panda is totally cute.

    -Prelude
    My best code is written with the delete key.

  3. #33
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    I agree with Prelude on the avatar.
    And one more thing, Some times the buffer is automaticaly flushed, for example when you write:
    cin >> "blabla";
    the buffer is automaticaly flushed.

  4. #34
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >I have to know where you get those avatars.

    trade secrets.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 12-06-2008, 01:43 PM
  2. differnce between endl and "\n"
    By BEN10 in forum C++ Programming
    Replies: 2
    Last Post: 07-19-2008, 10:08 AM
  3. Blank lines "\n"
    By Coding in forum C++ Programming
    Replies: 15
    Last Post: 02-18-2008, 07:56 PM
  4. tutorial confusion <<endl;
    By ikke in forum C++ Programming
    Replies: 5
    Last Post: 05-22-2003, 08:39 AM
  5. <<'\n' vs <<endl
    By Panopticon in forum C++ Programming
    Replies: 9
    Last Post: 01-10-2003, 09:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21