-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.cpp
More file actions
51 lines (45 loc) · 951 Bytes
/
Copy pathMain.cpp
File metadata and controls
51 lines (45 loc) · 951 Bytes
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
#include "Account.h"
#include "Login.h"
#include "Register.h"
int main()
{
Account Accounts("Accs.txt");
Login Logins(Accounts);
Register Registers(Accounts);
int auswahl;
while (true)
{
std::cin.sync(); std::cin.clear();
system("cls");
StartseiteMenu();
std::cout << "Ihre Wahl:";
std::cin >> auswahl;
std::cin.sync(); std::cin.clear();
switch (auswahl)
{
case 1:
std::cout << "----------------Anmelden---------------" << std::endl;
if (Logins.Anmelden())
{
Logins.Startseite();
}
else
{
std::cout << "Anmeldung war nicht erfolgerich..." << std::endl;
std::cin.get();
std::cin.sync(); std::cin.clear();
}
break;
case 2:
std::cout << "------------Registrieren---------------" << std::endl;
Registers.Registrieren();
break;
case 3:
system("cls");
std::cout << "---------------Programm beenden------------------";
return 0;
default:
continue;
}
}
}