C Project Bank
C Project Bank
#include<string>
using namespace std;
class Bank {
public:
}
else {}
}
void Bank::AddBalanse(int Lentharry, int idd, double BalanseAdd) {
for (int i = 0; i < Lentharry; i++) {
if (id[i] == idd) {
Ball[i] += BalanseAdd;
cout << "\n" << "Id: " << id[i] << "\nName: " << Name[i] <<
"\nAdress: " << Address[i] << "\nBalances: " << Ball[i] << endl;
break;
}
}
}
}
int main()
{
int choice=0;
string name, address;
int IndexArray=0,id;
double Balans;
Bank customer;
while (choice != -1) {
cout << "----------------------------------------------------" <<
endl;
cout << "1. Create Account" << endl;
cout << "2 .to show your current account details" << endl;
cout << "3. Add Balance" << endl;
cout << "4. Without BALANCE " << endl;
cout << "5.List All Account" << endl;
cout << "plase choise 1-5 for Exit press -1" << endl;
cin >> choice;
switch (choice)
{
case 1:
cout << "please enter ID: ";
cin >> id;
cout << "Please Enter Name: ";
cin >> name;
cout << "please Enter Address: ";
cin >> address;
cout << "please Enter Balance: ";
cin >> Balans;
break;
default:
choice = -1;
cout << "Good BYE Anas izzat Abu Dayah" << endl;
break;
}
}
return 0;
}