| 76 | } |
| 77 | |
| 78 | void Deposit() |
| 79 | { |
| 80 | double money; |
| 81 | cout << "\n Please enter amount of money - "; |
| 82 | cin >> money; |
| 83 | if (money == 0) |
| 84 | { |
| 85 | cout << "\n You entered 0 value so now you are redirected to the menu" << endl; |
| 86 | Sleep(2000); |
| 87 | } |
| 88 | else if (money > 0) |
| 89 | { |
| 90 | ::balance = ::balance + money; |
| 91 | |
| 92 | cout << "\n Please wait for a while, while we are transfering money to your account" << endl; |
| 93 | Sleep(2000); |
| 94 | cout << "\n "; |
| 95 | cout << money << "$ amount of money was added to your balance" << endl << endl; |
| 96 | } |
| 97 | else |
| 98 | { |
| 99 | cout << "\n Error!" << endl; |
| 100 | cout << "\n Please enter valid amount of money!" << endl << endl; |
| 101 | } |
| 102 | cout << "\n "; |
| 103 | system("pause"); |
| 104 | } |
| 105 | |
| 106 | void Borrow() |
| 107 | { |