Like Tree1Likes
  • 1 Post By grumpy

flush?

This is a discussion on flush? within the C++ Programming forums, part of the General Programming Boards category; sorry really simple one here have not come across this before. What is the meaning of flush in the code ...

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    36

    flush?

    sorry really simple one here have not come across this before. What is the meaning of flush in the code below.

    Code:
    cout << "Please insert the sizes of the table? ";
    flush(cout);

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,433
    Look at this.
    King Mir likes this.
    Right 98% of the time, and don't care about the other 3%.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,502
    you can also use

    Code:
    cout.flush();
    Code:
    namespace life
    {
        const bool change = true;
    }

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,053
    You might also run into it being used like this. Does the same thing.

    Code:
    cout << "Please insert the sizes of the table? " << flush;
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with input flush
    By KarrieWojo in forum C Programming
    Replies: 12
    Last Post: 12-29-2007, 01:38 AM
  2. File Flush
    By gvector1 in forum C Programming
    Replies: 4
    Last Post: 09-09-2003, 07:50 AM
  3. Flush or something....
    By Inquirer in forum Linux Programming
    Replies: 0
    Last Post: 04-16-2003, 07:55 PM
  4. Flush !!
    By Bones in forum C++ Programming
    Replies: 2
    Last Post: 10-27-2002, 06:44 PM
  5. flush()?
    By onurak in forum C++ Programming
    Replies: 3
    Last Post: 07-21-2002, 09:35 AM

Tags for this Thread


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