What I want to do is make a grading system. There is a vector for schools and classes and students, all of these which have their own class, derived from a class called system.
class System{
School * p; //School Pointer
vector<School>sSort;
public:
//Splash Screen Function
void Splash();
};
/*-School Class High-*/
class School : public System{
public:
/*-Variables of School-*/
string schoolname;
double averageGPA;
/*-Functions-*/
};
/*-Student Class High-*/
class Student : public School{
};
What I want to be able to do is make there be many instances of the School class, and each school has its own body of students and would need its own vector sort, and each student has their grades, which I would also like to be "vectorized". How would I make vectors in multiple classes, I only really know how to do so in the main function.