what is the function of this c++ declaration?
<code>

       struct Student{
        
             Student(){
       
             }
       };
       
</code>
And the enum:

<code>
        
       enum studenttype_t { levelA = 0, levelB = 1, levelC = 2 };
</code>
Then somewhere else it is declared:
<code>

       vector<Student *> student;


</code>

Could it be used as follows:
<code>
  
       student[levelA] = new Student();

</code>

If so, what does the <code> student[levelA]</code> mean? is it <code>0</code> in this case? and what is the function of the last statement, i.e. <code>student[levelA] = new Student();</code>? thanks
what is the function of this c++ declaration?
===

<code>

       struct Student{
        
             Student(){
       
             }
       };
       
</code>
And the enum:

<code>
        
       enum studenttype_t { levelA = 0, levelB = 1, levelC = 2 };
</code>
Then somewhere else it is declared:
<code>

       vector<Student *> student;


</code>

Could it be used as follows:
<code>
  
       student[levelA] = new Student();

</code>

If so, what does the <code> student[levelA]</code> mean? is it <code>0</code> in this case? and what is the function of the last statement, i.e. <code>student[levelA] = new Student();</code>? thanks