title: Initializing a pointer in another class
body: <p>I have a very simple problem. I am trying to learn C++ and I'm having a little problem. Here's the code</p>
  
  <p>system.h</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "processor.h"
  using namespace std;
  
  class sys
  {
      public:
          int id;
          sys()
          {
              id=0;
          }
  };
  </code></pre>
  
  <p>processor.h</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  class proc
  {
      public:
      const sys* s1;
      s1=new sys();
  };  
  </code></pre>
  
  <p>The error says</p>
  
  <pre><code>"error C2512: 'sys' : no appropriate default constructor available" 
  </code></pre>
  
  <p>There is a default constructor. </p>
  
  <p>I am a beginner at C++ so please explain what I am doing wrong. Thank You. </p>