Commit 10ed26b2 authored by Jared Sexton's avatar Jared Sexton

Fixing MAIN

parent 9d6a9d3a
......@@ -33,8 +33,9 @@ int main() {
}
} while (true);
}
else if (teacher.checkRoster(currentUser)) {
else if (teacher.checkRoster(currentUser) >= 0) {
int currentUserIndex = teacher.checkRoster(currentUser);
// Current user (Student object) : teacher.roster.at(currentUserIndex)
// Insert Student Menu Here...
cout << "Student Menu: \n";
......
......@@ -37,11 +37,13 @@ class Teacher {
void setExitCode(string exitCodeIn);
void setUserName(string userNameIn);
vector<Student> roster;
private:
bool teacherMenuActive = 1;
string userName;
string exitCode = "Quit";
vector<Student> roster;
//vector<Student> roster;
// Strings for file I/O
// If a file location needs to be changed, this is the place to do it!
......
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