I have class A and B is a derived class.
I want to make a data structure to manage the objects.
I choose an array. Array’s definition is A **m_A . I’ll use double asterisk.
I allocate an object. A *ptrA = new A.
I want this to be in the first element of the array.
I tried :
A *ptrA = new A;
**m_A = ptrA;
It didn’t work. Can any one help me with this please?