C++ array in structure access
<p>I have this structure in c++:</p>

<pre><code>struct Vertex_2 {
    GLdouble position[3];
};
</code></pre>

<p>I am trying to access the array inside of it like this:</p>

<pre><code>Vertex_2.position[0] = //something;
Vertex_2.position[1] = //something;
....
...
..
</code></pre>

<p>when I compile it I get this:</p>

<pre><code>error: expected unqualified-id before ‘.’ token
</code></pre>

<p>why is that?</p>
