-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (35 loc) · 1.12 KB
/
main.cpp
File metadata and controls
41 lines (35 loc) · 1.12 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
40
41
#include "dataextraction.h"
#include "CFunctions.h"
#include <iostream>
int main()
{
CDataExtraction extractor; //Extractor
CFunctions function; //Various functions, here: compare
extractor.addData();
bool end = false;
do
{
std::cout << "**** Ministerium für Justiz ****\n";
std::cout << "[D]aten einer verdächtigen Person extrahieren.\n";
std::cout << "[H]ilfe und Informationen.\n";
std::cout << "[P]rogramm beenden.\n";
std::cout << ">";
std::string sInput;
function.m_getline(sInput);
//"E": extract data
if(function.compare(sInput.c_str(), "D") == true)
extractor.extractData();
//"H": call help
else if(function.compare(sInput.c_str(), "H") == true)
extractor.help();
//"C": close programm
else if(function.compare(sInput.c_str(), "P") == true)
end=true;
//Wrong input
else
std::cout << "Falsche Eingabe!\n";
std::cout << "\n\n";
}while(end==false);
//Leave programm
std::cout << "Programm wird beendet...\n";
}