[Solved] how can i declare a C++ array of 10 pointers to objects of a class? [closed]


how can I declare an array of 10 pointers to objects of the circle class?

Like this:

circle* myArray[10];

It is then your responsibility to assign those pointers to point at valid circle objects. But how you do that exactly is outside the scope of your question, as you did not explain how you intend to use the circle class or this array.

solved how can i declare a C++ array of 10 pointers to objects of a class? [closed]