-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.cpp
39 lines (35 loc) · 810 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
/*
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)
{
TArticle AlleArtikel[1000];
std::string db_path = "database.csv";
bool exit = false;
char input;
std::fstream database;
open(db_path, database);
getData(database, AlleArtikel);
std::cout << "Hey, I'm your crazy ERP-System, what do you want to do?\n";
while(!exit)
{
menue(AlleArtikel);
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;
}