From be891b06d065504be51d094503c654377ebc22d7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 24 Oct 2020 15:25:54 +0300 Subject: Renamed C++ folder to C++ (from CPP) --- C++/BABS/main.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 C++/BABS/main.cpp (limited to 'C++/BABS/main.cpp') diff --git a/C++/BABS/main.cpp b/C++/BABS/main.cpp new file mode 100644 index 0000000..717e0dd --- /dev/null +++ b/C++/BABS/main.cpp @@ -0,0 +1,35 @@ +#include + +#include "BankSystem.h" + +#define MODE_SPACER "------------------------------------------------------------" + +using namespace std; + +int main() +{ + cout << "Welcome to BA banking system!" << endl << endl; + while(true) { + cout << "Mode: Atm/Banker/Exit "; + char inValue; + cin >> inValue; + + if (inValue == 'e' || inValue == 'E' || inValue == '0') { + return 0; + } + + if (inValue == 'b' || inValue == 'B') { + cout << MODE_SPACER << endl; + bankerMode(); + cout << MODE_SPACER << endl; + } + else { + cout << MODE_SPACER << endl; + atmMode(); + cout << MODE_SPACER << endl; + } + } + cout << "Goodbye!" << endl << endl; + + return 0; +} \ No newline at end of file -- cgit v1.2.3