-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
60 lines (46 loc) · 1.12 KB
/
Copy pathmain.cpp
File metadata and controls
60 lines (46 loc) · 1.12 KB
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
52
53
54
55
56
57
58
59
60
#include <iostream>
#include "BankSystem.h"
using namespace std;
int main()
{
BankSystem bank;
int choice;
while (true)
{
cout << "\n===== Mini Financial Ledger System =====\n";
cout << "1 Create Account\n";
cout << "2 Deposit\n";
cout << "3 Withdraw\n";
cout << "4 Transfer\n";
cout << "5 Check Balance\n";
cout << "6 Transaction History\n";
cout << "7 Exit\n";
cout << "Choice: ";
cin >> choice;
switch (choice)
{
case 1:
bank.createAccount();
break;
case 2:
bank.deposit();
break;
case 3:
bank.withdraw();
break;
case 4:
bank.transfer();
break;
case 5:
bank.showBalance();
break;
case 6:
bank.showHistory();
break;
case 7:
return 0;
default:
std::cout << "Invalid choice.\n";
}
}
}