i need make a banking system program

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <iostream>

using namespace 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?
typically bank has clients. correct.

so make a bank class, make clients a member of bank class. now till your bank object lives, your client also lives.

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....
Topic archived. No new replies allowed.