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.
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper NowI 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;
A **m_A[3];
**m_A[0] = ptrA;
It didn’t work. Can any one help me with this please?