title: C++ Writing to console without delays
body: <p>I'm looking for a C++ solution to an already existent question: <a href="https://stackoverflow.com/questions/8777210/writing-to-console-without-delays">Writing to console without delays</a>.</p>
  
  <p>Basically, I'm trying to output a large block of text to a console window without getting that "typing" delay. As in, even though it's very fast, you can still see it being written to the screen line by line. Since the entire screen can immediately change colors, I know it's not a screen refresh issue, but rather how the output is being done.</p>
  
  <p>If you need more details, read the other thread, the OP of that one explained the issue much better than I can.</p>
  
  <p>Right now, I'm storing everything in a <code>stringstream</code> buffer, but how to output it immediately is where I'm stuck.</p>
  
  <p>Thanks.</p>
  
  <p>UPDATE: The issue seems to be that VS2013 doesn't like to do an immediate output. When I compiled my code with Code::Blocks, I'm getting the desired output.</p>
  
  <pre><code>stringstream s;
  // ...
  cout &lt;&lt; s.str() &lt;&lt; flush;
  </code></pre>