I read your reply and decided to give more source
btw what I cut off on, it was an accidental paste.
int DoIt(cBankAcct *PAcct)
{
int x=1,t;
void (* Transaction[3])() ={PAcct->Deposit ,PAcct->Withdrawl,PAcct->ShowAll}; //declaring an array of pointer to functions
while(t!=4)
{
t = TransType();
if(t==4) continue;
//(*Transaction[t-1])(); //goto function i, same as switch i
cout << "\n\nWould you like to exit Transactions? Yes(1) No(0)\n";
cin >> x;
system("CLS");
if(x==1) break; //exit loop if the user does not want to make another transaction
}
return 1;
}
//////////////////////////////////////////class dec
////////////////////The other classes are derived from this
#include<string.h>
#include<stdlib.h>
#include<iomanip.h> //#include<iostream.h>
class cBankAcct
{
protected:
char name[50],acctnum[15];
float balance;
public:
cBankAcct(char n[],char a[],float f);
virtual void Deposit();//float &);
virtual void Withdrawl();//float &);
virtual void ShowAll();
};
////////////////////////////////////////class code
////////////////////////The rest or the classes are similar
#include "BankAcct.h"
cBankAcct::cBankAcct(char n[],char a[],float b) //get bs data
{
strcpy(name,n);
strcpy(acctnum,a);
balance = b;
}
void cBankAcct:

eposit()//float &d)
{
float d;
cout << "Please enter the amount of deposit.\n>> ";
cin >> d;
balance+=d;
ShowAll();
}
void cBankAcct::Withdrawl()//float &w)
{
float w;
cout << "Please enter the amount of Withdrawl.\n>> ";
cin >> w;
if(w<=balance)
balance-=w;
else
{
cout << "***Insufficient funds!!!!***" << endl; //if not enough funds tell 'em
system("pause");
}
ShowAll();
}
void cBankAcct::ShowAll()
{
system("CLS");
cout << "\t\tSavings Account Information\n";
cout << "Customer Name: " << name << "\tAccount Number: " << acctnum << endl;
cout.precision(2);
cout.setf(ios::showpoint | ios::fixed);
cout << "Current Balance = " << balance << endl;
}