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;

A **m_A[3];

**m_A[0] = ptrA;

It didn’t work. Can any one help me with this please?

Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.