I did a tutorial on Vectors of Objects. The code runs fine. No problems. But I think I found a glitch in the Editor.
void printVector(const std::vector<Student>& newMyClass)
{
unsigned int cSize = newMyClass.size();
for (unsigned int i = 0; i < cSize; i++)
{
std::cout << "Student Name: " << newMyClass[i].getName() << "\n";
std::cout << "Student Grade: " << newMyClass[i].getGrade() << "\n\n";
}
}
Inside the FOR LOOP, I use the dot operator twice, each time after newMyClass. It should be bring up my Class information for me to select what I want to use, but it's dead. I had to type in getName() and getGrade(). The attached pic, from the tutorial, shows what I expected but didn't get. I'll attach the code too, just for kicks. Anyway, I can live with it the way it is. Just seems a little unbalanced.