several objects

Hi Guys;
I want to write an Bank account management console program with C++. i created one class for customer and for now i didnt create another class for staff and i assumed there is only one staff because i think its complicated for now. so at the begining i dont know how many customers may register in the system. how come object creation can be done during program execution?
So you want a number of 'customer' classes to be created but you don't know how many?

Use a container class, like a vector.

 
std::vector<Customer> customers;


http://www.cplusplus.com/reference/vector/vector/
Yeah you'll need some dynamic container such as those in the STL.

Aceix.
Topic archived. No new replies allowed.