just a general question about c++..
I am new to c++ programming and need to create instances of objects at runtime. However, the number of instances to be initialised varies each time the exe is run, and is dependant on variables passed to the exe. pretty much any number of instances (from say 1 to 30) could be required each time.
As far as i am aware, i cannot declare instances "on the fly", they must be fixed for each time the exe runs.
I am fairly sure there must be techniques that can be employed to solve this type of problem, since i imagine it is quite a common one. But because of my lack of experience in c++ i am not sure which direction to take.
any advice on this would be gratefully recieved.