title: Can std::cout be redirected to output view in Visual Studio 2010 C++ out-of-the-box?
body: <p>I want to know if this can be done in the latest version of VS by a simple setting somewhere that causes VS to behave in a way that is equivalent to "ContextMenu">run "a_Java_src_file_with_main" in the Eclipse IDE. I'm using the trial version of VS 2010 Pro on a new W7 platform. Even the minimal helloworld cpp source file added to a project generated from the "empty" template redirects into a command window.</p>
  
  <p>Same question 3 years ago:<br>
  <a href="https://stackoverflow.com/questions/73286/capturing-cout-in-visual-studio-2005-output-window">Capturing cout in Visual Studio 2005 output window?</a>
  <br>And 9 months ago:<br>
  <a href="https://stackoverflow.com/questions/5248704/how-to-redirect-stdout-to-output-window-from-visual-studio">How to redirect stdout to output window from visual studio</a></p>
  
  <p>I'm aware of using OutputDebugString(...) and of redirecting the stream to a file as alternatives.<br>
  <a href="https://stackoverflow.com/questions/122778/capture-console-output-for-debugging-in-vs">Capture console output for debugging in VS?</a></p>