forked from bastelfreak/erp-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
44 lines (40 loc) · 860 Bytes
/
main.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
/*
Created by Meusel
Responsible: Meusel ¯\(°_°)/¯
handles all stuff
*/
// include global stuff
#include <iostream>
// include our own stuff
#include "articlesearch.h"
#include "filehandler.h"
#include "menue.h"
#include "statistics.h"
#include "tarticle.h"
int main (void)
{
std::string db_path = "database.csv";
bool exit = false;
char input;
std::fstream *database = open(db_path);
getLine(database);
while(!exit)
{
int methodNumber = menue();
switch(methodNumber)
{
case 1: break;
case 2: break;
case 3: break;
case 4: break;
default: break;
}
std::cout << "Do you want to exit the Tool(y)?" << "\n";
std::cin >> input;
if(input == 'y' || input == 'Y' || input == 'z' || input == 'Z')
{
exit = true;
}
}
return 0;
}