title: (c++) Declaring a class member in a class
body: <p>I am trying to create a CBuffer member in every CClient class like this :</p>
  
  <pre><code>#ifndef CCLI_INC
  #define CCLI_INC
  #include "CBuffer.h"
  #include "main.h"
  
      class CClient
      {
      private:
  
          CBuffer *m_buffer;
  
  
      public:
          CClient();
  
  
  
      };
  </code></pre>
  
  <p>but this code gives me</p>
  
  <pre><code> error C2143: syntax error : missing ';' before '*'
   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  </code></pre>
  
  <p>Although I have included cbuffer.h header, it gives this weird error..</p>