title: syncing iostream with stdio
body: <p>I am trying to add iostream to the legacy code and thus  want to sync those two libraries.
  According to this <a href="http://www.ddj.com/article/printableArticle.jhtml;jsessionid=1TRM2O2DD5CJ5QE1GHPSKHWATMY32JVN?articleID=184401305&amp;dept_url=/cpp/" rel="nofollow noreferrer">article</a>,  I should use std::ios_base::sync_with_stdio.</p>
  
  <p>Now, I wonder how it is used in practice (examples please), side-effects I should be aware of.</p>
  
  <p>Thx</p>