Flushing of cout prior to reading input using cin .. why?

Posted by yapkm01 on Stack Overflow See other posts from Stack Overflow or by yapkm01
Published on 2010-04-24T14:14:07Z Indexed on 2010/04/24 14:23 UTC
Read the original article Hit count: 137

Filed under:

Why does cout has to be flushed before cin starts reading? Aren't they of different buffer? I can have reading of input into a buffer while same time putting it on output buffer (before flushing) .. 2 different buffers. I am confused here.

© Stack Overflow or respective owner

Related posts about c++