for(int i = 0; i < classSize; i++){
cout << "Enter Student Name: ";
cin >> name;
cout << "Enter Student Grade: ";
cin >> grade;
Student(name, grade);
newMyClass.push_back(Student);
cout << endl;
}
The newMyClass.push_back(student); gets an error - expected primary-expression before ")" token. I would upload the entire code to give you a better understanding of the situation but it includes three supporting files as it is a object oriented program.