First of all I'd like to apologise if there is any ambiguity in my questions since I'm new at c++.
My problem is trying to figure out how to initialise an object of a class that would depend on the user.
For example I have class Account and as far as I know I can initialise it's constructor by using the command eg.
Account acc1 (jack, 500);
First problem is how can I make a user set the initialisation? For example the user enter it's name and the ammount he/she wishes to deposit then an account object would be initialised.
Therefore to call a method of this object I could use a command eg.
Second problem is, since there is no object yet, how can I determined what object name will be used in the command above if there is no object that have been initialised?
I know that this is wuite a lot of but I would really appreciate any help.