Hi, I got a C++ struct:
struct Student{
Student(){
}
};
And the enum:
enum studenttype_t { levelA = 0, levelB = 1, levelC = 2 };
Then somewhere else it is declared:
vector<Student *> student;
Could it be used as follows:
student[levelA] = new Student();
If so, what does the student[levelA]
mean? is it 0
in this case? and what is the function of the last statement, i.e. student[levelA] = new Student();
? thanks