I've been stuck on this one for awhile. Seemingly eliminated all bugs from my code except for this one.
the below is declared in my .h publicly
void printDaysInCourse(string studentID);
this is privately in .h
1 2
Student** classRosterArray;
i then define the printsDaysInCourses function in the .cpp. I'll leave that out, unless it's needed. Here's where i run into the problem, in main, I have this:
1 2 3 4
for (int c = 0; c < numStudents; c++)
{
classRoster->printDaysInCourse(classRosterArray[c]->getID());
}
When I do this I get the error "identifier "classRosterArray" is undefined, and also "left of '->getID' must point to class/struct/union/generic type"