title: Error: 'cout' : undeclared identifier; though I've included iostream header file in program
body: <p>I am trying to compile the simple program below. But, it's not compiling &amp; gives error:</p>
  
  <pre><code>error C2065: 'cout' : undeclared identifier
  </code></pre>
  
  <p>I want to ask you that why this program doesn't work though I've included <code>iostream</code> header file in it?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  void function(int) { cout &lt;&lt; “function(int) called” &lt;&lt; endl; }
  void function(unsigned int) { cout &lt;&lt; “function(unsigned int) called” &lt;&lt; endl; }
      int main()
      {
          function(-2);
          function(4);
          return 0;
      }
  </code></pre>
  
  <p>Thanks in advance.</p>