Commit ad8e1812 authored by Andrew Binder's avatar Andrew Binder

Added accessor/mutator for a student in the roster vector

parent 09745a12
......@@ -247,5 +247,5 @@ void Teacher::setUserName(string userNameIn) {
}
void setStudent(Student studentIn) {
roster.at(studentIn.checkRoster()) = studentIn;
roster.at(studentIn.checkRoster()) = studentIn;
}
\ No newline at end of file
......@@ -38,7 +38,7 @@ class Teacher {
// Mutators
void setExitCode(string exitCodeIn);
void setUserName(string userNameIn);
void setStudent(Student studentIn); // I think it's safe to say that studentIn will be a student in the vector; so the function will find where the student goes in the vector by itself
void setStudent(Student studentIn); // I think it's safe to say that studentIn will be a student in the vector; so the function will find where the student goes in the vector by itself
// vector<Student> roster;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment