-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAtomicMain.cpp
55 lines (40 loc) · 905 Bytes
/
AtomicMain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//Main.cpp
#include <iostream>
#include "Atomic.h"
using namespace std;
int main() {
int input = 1;
Atomic A;
while (input != 0) {
cout << "====Main Menu====" << endl << endl;
cout << "1: Load File Entries\n";
cout << "2: List Entries\n";
cout << "3: Load Testing Strings\n";
cout << "4: Run\n";
cout << "5: Exit\n";
cin >> input;
if (cin.fail()) {
cin.clear();
cout << "Enter a Number!\n\n";
}
switch (input) {
case 1: cout << "Loading Files...\n";
A.LoadFiles();
break;
case 2: cout << "List Entries...\n";
break;
case 3: cout << "Testing Strings...\n";
break;
case 4: cout << "Run\n";
A.Run();
break;
case 5: cout << "Good bye\n";
input = 0; //Exit
break;
default: cout << "Sorry that is not a valid number!";
break;
}
cin.ignore(1000, '\n');
}
return 0;
}