Teacher_Driver.cpp 1.29 KB
Newer Older
Andrew Binder's avatar
Andrew Binder committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ***************************************
// Test Drive compilation instructions:
// g++ -std=c++11 Teacher_Driver.cpp Teacher.cpp -o Teacher_Driver.cpp.o

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

using namespace std;

int main() {
    
    string teacherUserName;
    
    cout << "First we will test the constructor: \nInput a username: ";
16
    // cin >> teacherUserName;
Andrew Binder's avatar
Andrew Binder committed
17

18
19
20
21
    Teacher testTeacher;
    
    testTeacher.importProgress();
    
Andrew Binder's avatar
Andrew Binder committed
22
23
    cout << "The test teachers name is " << testTeacher.getUserName() << ".\n\n";
    
24
    // cout << "Display Menu:\n";
25
26
    //testTeacher.displayMenu();
    
Andrew Binder's avatar
Andrew Binder committed
27
    
28
29
30
31
32
    
    // cout << "Now, we will enroll some students.\nEnter three students names: ";
    
    // for (int i = 0; i < 3; i++) {
    //     string studentNameIn;
Andrew Binder's avatar
Andrew Binder committed
33
        
34
35
    //     cin >> studentNameIn;
    //     Student studentIn(studentNameIn);
Andrew Binder's avatar
Andrew Binder committed
36
        
37
38
39
40
    //     testTeacher.enrollStudent(studentIn);
    // }
    // //Student studentIn("Andrew");
    // //testTeacher.enrollStudent(studentIn);
Andrew Binder's avatar
Andrew Binder committed
41
    
42
43
    // cout << "\nNow we will test the displayProgress() function.\n";
    // testTeacher.displayProgress();
Andrew Binder's avatar
Andrew Binder committed
44
    
45
    // testTeacher.adjustProgress("Andrew",5);
Andrew Binder's avatar
Andrew Binder committed
46
47
    
    testTeacher.displayProgress();
48
    testTeacher.exportProgress();
49
    // testTeacher.saveProgress();
Andrew Binder's avatar
Andrew Binder committed
50
51
52
    
    return 0;
}