title: stdout and need to flush it C++
body: <p>I have some C++ code that uses <code>cout</code> statements for debug purposes and for some reason I can't get all the data to print unless I do a <code>std::cout.flush();</code> at the end. </p>
  
  <p>I don't quite understand why this flush operation is needed.</p>
  
  <p>Anyone have any insight?</p>