Can I stop std::cout flushing on "\n"?
<p>According to to <a href="http://www.cpptalk.net/n-and-flush-cout-vt9984.html" rel="nofollow">this post</a> std::cout will automatically flush on <code>\n</code> when it is attached to an interactive device (e.g. a terminal window).  Otherwise (e.g. when being piped to a file) it will act fully buffered and will only flush on <code>.flush()</code> or <code>std::endl</code>.</p>

<p>Is there a way to override this behaviour in Microsoft Visual C++ so that I can select whether I want fully buffered or line buffered mode?</p>
