title: Simple C++ program not compiling using wstrings and cout
body: <p>I´m building this simple C++ program using Visual Studio 2012:</p>
  
  <pre><code>#include &lt;stdafx.h&gt;
  
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  
  int main()
  {
      std::wcout &lt;&lt; "Hello World...";
  
      std::string input_data;
  
      std::string output_data("Hello. Please type your name");
  
      std::wcout &lt;&lt; output_data;
      std::wcin &gt;&gt; input_data;
  
      std::wcout &lt;&lt; "Your name is " &lt;&lt; input_data;
  
      return 0;
  }
  </code></pre>
  
  <p>I can´t compile. Getting the followig errors:</p>
  
  <pre><code>error C2678: binary '&gt;&gt;' : no operator found which takes a left-hand operand of type 'std::wistream' (or there is no acceptable conversion)
  
  error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
  
  error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
  
  IntelliSense: no operator "&lt;&lt;" matches these operands
              operand types are: std::basic_ostream&lt;wchar_t, std::char_traits&lt;wchar_t&gt;&gt; &lt;&lt; std::string    
  
  IntelliSense: no operator "&lt;&lt;" matches these operands
              operand types are: std::wostream &lt;&lt; std::string
  
  IntelliSense: no operator "&gt;&gt;" matches these operands
              operand types are: std::wistream &gt;&gt; std::string
  </code></pre>
  
  <p>Can someone help me to fix that ?</p>