-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (37 loc) · 1.05 KB
/
Copy pathmain.cpp
File metadata and controls
39 lines (37 loc) · 1.05 KB
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
#include "lib.h"
#include "Tester/tester.h"
#include "Parser/parser.h"
int main(int argc, char *argv[]) {
try{
int option = 0, option1 = 0;
do{
console_clear();
option = menuMain();
switch(option){
case 1:
Tester::executeFunctionExamples();
break;
case 2:
Tester::executeAlgorithmsExamples();
break;
case 3:
menu3();
Tester::executeParser(true);
break;
case 4:
menu4();
Tester::executeParser(false);
break;
case 5:
Tester::executeGraphCreator();
break;
default:
break;
}
}while(option != 6);
}catch (const std::exception & ex){
std::cerr << ex.what() << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}