Question: Please help fix compiler errors in C++ programs. My issue is that I have a hard time understanding pointers so I don't know how to

Please help fix compiler errors in C++ programs.

My issue is that I have a hard time understanding pointers so I don't know how to fix this

Getting Compiler Error C3867: non-standard syntax use & to create a pointer to member

bool Classroom::assignStudentAt(int row, int col, Student *tempStudent) {

Student seatedStudent = seating[row][col];

if (!strcmp(seatedStudent.getFirstName(), "???") && !strcmp(seatedStudent.getLastName(), "???")) { // getting error here for getFirstName and getLastName

seating[row][col] = *tempStudent;

return 1;

}

return 0

}

in a separate file are the methods:

char* Student::getFirstName() {

return this->first_name;

}

char* Student::getLastName() {

return this->last_name;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!