i want to make an object oriented program which creates accounts and manages them.
I made a class with functions that allows you to introduce data about a client of the bank. look here
#include <iostream>
usingnamespace std;
class client
{
public:
void CreareCod();
void NumarConturi();
void Name();
private:
int cod;
int NrConturi;
char NumeClient;
};
void client:: CreareCod()
{
cout<<"introduceti nume cod"<<endl; // then i introduce a unique code for each client of the bank
cin>>cod;
}
void client:: NumarConturi()
{
cout<<"introduceti numarul de conturi pe care doriti sa il creati"<<endl; // then the client writes how many accounts he want to make
cin>>NrConturi;
}
void client:: Name()
{ cout<<"introduceti numele "<<endl; // then i introduce the name of the client
cin>>NumeClient;
}
int main()
{
client s; // here i tried the class and functions i made to see if it works
s.CreareCod();
s.NumarConturi();
s.Name();
system ("PAUSE");
return 0;
}
now i want to introduce a new class called bank which keeps a list of the clients as a pointer to class client. I need a function that allows you introduce a new client and one which returns a reference to a client using its code. How chould i do this? how can i make the new class to keep the clients list in the memory?
hey Can somebody send me the whole online bank codes in which user can deposit or withdraw and user can receive bank statement in which he can see his reacent 5 transcation,, so Can someone help me with it....