#include "BankAccount.h" #include using namespace std; int main() { char ch; static int i=0; BankAccount *a[10]; int x,k; do { cout<>x; switch(x) { case 1: { i++; a[i]=new BankAccount; a[i]->NewAccount(); break; } case 2: { cout<<"Enter account no.: "; cin>>k; a[k]->Deposit(); break; } case 3: { cout<<"Enter account no.: "; cin>>k; a[k]->Withdraw(); break; } case 4: { cout<<"Enter account no.: "; cin>>k; a[k]->Display(); break; } } cout<<"\nDo you wish to continue[Press 'Y' to continue or 'N' to exit menu]: "; cin>>ch; } while(ch=='y'||ch=='Y'); cin.get(); cin.get(); cin.get(); cin.get(); }