why I can not cout a string?
<p>why i can not cout string like here :</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 error in cout .</p>

<p><strong>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</strong></p>

<p>it is amazing , even using </p>

<pre><code>  string text ;
  text = "hello"  ;
  cout &lt;&lt; "String is  : " &lt;&lt; text &lt;&lt; endl ;
</code></pre>

<p>is not working </p>
