Teacher_Driver.cpp 962 Bytes
Newer Older
Andrew Binder's avatar
Andrew Binder committed
1
2
3
4
5
// *****************************************************************************
// AUTHOR: Andrew Binder
// This file is a test drive for the Teacher.h/cpp classes. It, along with the
// .h and .cpp file explain everything you should need to know about my files.
// 
Andrew Binder's avatar
Andrew Binder committed
6
// Test Drive compilation instructions:
Andrew Binder's avatar
Andrew Binder committed
7
8
// g++ -std=c++11 Teacher_Driver.cpp Teacher.cpp -o Teacher_Driver.cpp.o && ./Teacher_Driver.cpp.o
// *****************************************************************************
Andrew Binder's avatar
Andrew Binder committed
9
10
11
12
13
14
15
16

#include <string>
#include <iostream>
#include "Teacher.h"

using namespace std;

int main() {
17
18
    Teacher testTeacher;
    
Andrew Binder's avatar
Andrew Binder committed
19
    testTeacher.importProgress();   // This should probably be called whenever the main file is run.
20
    
Andrew Binder's avatar
Andrew Binder committed
21
    cout << "The test teachers name is " << testTeacher.getUserName() << ".\n";
Andrew Binder's avatar
Andrew Binder committed
22
    
Andrew Binder's avatar
Andrew Binder committed
23
24
25
26
27
28
    do {
        testTeacher.displayMenu();
        if (!testTeacher.getMenuActive()) {
            break;
        }
    } while (true);
Andrew Binder's avatar
Andrew Binder committed
29
30
31
    
    return 0;
}