Help with classes and member variables in C++
<p>Ok I have two classes: Image and Scene. Now in the Image header file, I defined three private variables: xcoord, ycoord, and index (as well as their respective public getter methods).</p>

<p>I have another class named Scene. Scene is not a subclass of Image. Scene has two member variables: <code>int maximum</code> and <code>Image **images</code>. Now in Scene, I have some methods that attempt to access the member variables of the Image class. For example:</p>

<pre><code>int beginX =this-&gt;images[i].getXcoord;
int beginY =this-&gt;images[i].getYcoord;
</code></pre>

<p>However, I get the following errors:</p>

<pre><code> error: request for member ‘getXcoord’ in ‘*(((Image**)((const Scene*)this)-&gt;Scene::images) + ((Image**)(((long unsigned int)i) * 8ul)))’, which is of non-class type ‘Image*’

scene.cpp:135: error: request for member ‘getYcoord’ in ‘*(((Image**)((const Scene*)this)-&gt;Scene::images) + ((Image**)(((long unsigned int)i) * 8ul)))’, which is of non-class type ‘Image*’
</code></pre>

<p>In my scene.cpp file, I have included scene.h which includes image.h, so I'm pretty sure everything is properly linked. Is it apparent what my problem is or will I have to provide more information?</p>
