title: error C2065: 'cout' : undeclared identifier
body: <p>I am working on the 'driver' part of my programing assignment and i keep getting this absurd error:</p>
  
  <blockquote>
    <p>error C2065: 'cout' : undeclared identifier</p>
  </blockquote>
  
  <p>I have even tried using the <strong>std::cout</strong> but i get another error that says: <strong>IntelliSense: namespace "std" has no member "cout"</strong> when i have declared <strong>using namespace std, included iostream</strong> + i even tried to use <strong>ostream</strong></p>
  
  <p>I know it's a standard noob question but this has stumped me and I'm a novice (meaning: I've programed before...)</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main () {
      cout &lt;&lt; "hey" &lt;&lt; endl;
   return 0;
  }
  </code></pre>
  
  <p>I'm using Visual Studio 2010 and running Windows 7. All of the .h files have "using namespace std" and include iostream and ostream.</p>