C
Chris Roth
I am constructing a vector of objects of class A. The constructor for
class A takes an instance of class B in its constructor. I have a vector
of B objects and would like to construct a vector of A objects so that
each is constructed using the corresponding B object.
Is this possible or do I need to use pointers along with new and delete?
Thanks
class A takes an instance of class B in its constructor. I have a vector
of B objects and would like to construct a vector of A objects so that
each is constructed using the corresponding B object.
Is this possible or do I need to use pointers along with new and delete?
Thanks