Binary "[" error on structure while using for function
<p>I'm trying to make a Q3BSP map information debugger.</p>

<p>I'm stuck at texture debugger part, this is the code used in that part:</p>

<pre><code>for( i = 0; i &lt; nTextures; i++ ) {
    printf( "Texture id %d\n", i );
    printf( "\tTexture name %s\n", Texture[i].name );
    printf( "\tTexture flags %d\n", Texture[i].flags );
    printf( "\tTexture contents %d\n", Texture[i].contents );
}
</code></pre>

<p>But this kind error appears to show up:</p>

<blockquote>
  <p>error C2676: binary '[' : 'Q3BSPTexture' does not define this operator or a conversion to a type acceptable to the predefined operator</p>
</blockquote>

<p>Here is the Q3BSPTexture structure:</p>

<pre><code>typedef struct {
    char        name[64];      // Texture name. 
    int         flags;         // Surface flags.
    int         contents;      // Surface contents
} Q3BSPTexture;
</code></pre>

<p>I'm suspecting that the structure hasn't the limit setted like char <strong>[32]</strong></p>

<p>But I like to hear solution from professionals!</p>
