Y
Yuri Feldman
Hello all,
I would like to use a vector to store objects of different classes,
all (publicly) inherited from class Vehicle.
Is there a better way to do it than using a Vector<Vehicle*> i.e.
storing the pointers to these objects in the vector?
Is there an STL container better suited for this purpose? (I need to
be able to index it, like an array).
Thanks,
I would like to use a vector to store objects of different classes,
all (publicly) inherited from class Vehicle.
Is there a better way to do it than using a Vector<Vehicle*> i.e.
storing the pointers to these objects in the vector?
Is there an STL container better suited for this purpose? (I need to
be able to index it, like an array).
Thanks,