title: Why isn't cin >> string working with Visual C++ 2010?
body: <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main() {
      string s;
      cin &gt;&gt; s;
      cout &lt;&lt; "Hello World!";
  }
  </code></pre>
  
  <p>This isn't working. Why?</p>