title: Cout and endl errors
body: <p>I have listed my code below. I get soooo many errors saying cout and endl was not declared in this scope. I do not know what I am doing wrong or how to force the class to recognise cout? I hope I am explaining my problem correctly. If I comment out the methods (not the constructor) it works. I am probably just making a novice mistake here - please help.</p>
  
  <pre><code>using namespace std;
  
  class SignatureDemo{
  public:
      SignatureDemo (int val):m_Val(val){}
      void demo(int n){
          cout&lt;&lt;++m_Val&lt;&lt;"\tdemo(int)"&lt;&lt;endl;
      }
      void demo(int n)const{
          cout&lt;&lt;m_Val&lt;&lt;"\tdemo(int) const"&lt;&lt;endl;
      }
      void demo(short s){
          cout&lt;&lt;++m_Val&lt;&lt;"\tdemo(short)"&lt;&lt;endl;
      }
      void demo(float f){
          cout&lt;&lt;++m_Val&lt;&lt;"\tdemo(float)"&lt;&lt;endl;
      }
      void demo(float f) const{
          cout&lt;&lt;m_Val&lt;&lt;"\tdemo(float) const"&lt;&lt;endl;
      }
      void demo(double d){
          cout&lt;&lt;++m_Val&lt;&lt;"\tdemo(double)"&lt;&lt;endl;
      }
  
  private:
      int m_Val;
  };
  
  
  
  int main()
  {
      SignatureDemo sd(5);
      return 0;
  }
  </code></pre>