const error message
<p>hi
what does this error message mean :
error C2662: 'addDoctor' : cannot convert 'this' pointer from 'const class Clinic' to 'class Clinic &amp;'
I'm not using const though</p>

<p>sorry,but this is my first time posting experience</p>

<p>Clinic.h</p>

<pre><code>class Clinic{
    public:
     Clinic();
     int addDoctor(Doctor*); 
    private:
     Doctor doctors[10];
     int d;
    };
</code></pre>

<p>Clinic.cpp</p>

<pre><code>Clinic::Clinic()
    {d=-1;}
int Clinic::addDoctor(Doctor *x)
    {d++;doctors[d]=x;return d;}
</code></pre>
