P
Philipp
i think you're trying to do something like this:
Yes exactly! That's what I wanted to do and after thinking for 5 minutes by
myself I figured it out...
I just was confused that one of the ' * ' is for the array and the second
one is for the actual pointers stored in the array.
Thanks to all of you for your answers.
Phil
int N = 22;
// the ** makes the array of pointer not array of objects
MyClass **pointerArray;
// crerate all the Pointer
pointerArray = new (MyClass*)[N];
// create all the objects
for (int i=0; i< N; i++)
pointerArray = new MyClass(i);
Yes exactly! That's what I wanted to do and after thinking for 5 minutes by
myself I figured it out...
I just was confused that one of the ' * ' is for the array and the second
one is for the actual pointers stored in the array.
Thanks to all of you for your answers.
Phil