-
Notifications
You must be signed in to change notification settings - Fork 0
/
ATM.cpp
44 lines (32 loc) · 898 Bytes
/
ATM.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
#include <iostream>
#include <cstdlib>
#include "Bankomat.h"
#include "Card.h"
#include "MenuOperations.h"
#include "CardSessions.h"
#include "Bank.h"
#include "MainScreen.h"
#include "Singleton.h"
using namespace std;
Singleton* Singleton::_instance = nullptr;
int main() {
setlocale(LC_ALL, "rus");
//главный экран
Singleton* log = Singleton::instance();
MainScreen b(log);
Chosen ch;
ch.Operation();
Card card(ch.GetChosen());
card.SetCardChosen(ch.GetChosen());
//cout << card.GetCardChosen();
system("pause");
//если пароль правильный РАБОТАЕМ!
if (b.CheckPin(log, ch.GetChosen(), card)) {
//MenuOperations a;
MenuOperations::Print(log, card);
}
//если неправильный - ПОКА ПОКА приходи потом!
else exit(1);
log->~Singleton();
return 0;
}