title: Why I cannot cout a string?
body: <p>Why I cannot <code>cout</code> <code>string</code> like this:</p>
  
  <pre><code>string text ;
  text = WordList[i].substr(0,20) ;
  cout &lt;&lt; "String is  : " &lt;&lt; text &lt;&lt; endl ;
  </code></pre>
  
  <p>When I do this, I get the following error:</p>
  
  <blockquote>
    <p>Error 2   error C2679: binary '&lt;&lt;' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)  c:\users\mollasadra\documents\visual studio 2008\projects\barnamec\barnamec\barnamec.cpp    67  barnamec**</p>
  </blockquote>
  
  <p>It is amazing, that even this is not working:</p>
  
  <pre><code>string text ;
  text = "hello"  ;
  cout &lt;&lt; "String is  : " &lt;&lt; text &lt;&lt; endl ;
  </code></pre>