double asterisk array in c++, computer science homework help

double asterisk array in c++, computer science homework help

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?

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper