Thread: You know... I still don't get buffers.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079

    You know... I still don't get buffers.

    Call me dense, because I just don't get this.

    Don't get me wrong, I understand the concept of buffered and unbuffered output completely. Conceptually, it's simple. When will I ever see it in practice though? To put it another way... when is cout not flushed?

    For a long time I've been looking for a visual example that depicts the difference between cout and cerr. I've written some test programs trying to show the difference, but to no avail.

    So does anyone have a good example of cout not outputting where cerr would? Right now the only thing I can think of is writing multiple threads and hope one of the threads fails, crashes the program, right in the middle of a cout out statement. I don't know. My head hurts.
    Last edited by SlyMaelstrom; 06-14-2006 at 04:53 PM.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Buffers , heaps , stacks ...
    By BlaX in forum Tech Board
    Replies: 9
    Last Post: 02-17-2009, 03:09 PM
  2. Buffers , heaps , stacks ...
    By BlaX in forum C Programming
    Replies: 1
    Last Post: 02-17-2009, 01:11 PM
  3. Reading in 16 and 24-bit audio data into (32-bit) integer buffers
    By theblindwatchma in forum C Programming
    Replies: 2
    Last Post: 04-13-2008, 11:12 PM
  4. winsock internal buffers
    By X PaYnE X in forum Networking/Device Communication
    Replies: 7
    Last Post: 05-16-2005, 04:25 AM
  5. Copy to Buffers
    By egomaster69 in forum C Programming
    Replies: 3
    Last Post: 12-05-2004, 06:50 PM