There are two options: create an array of pointers and then create instances for those pointers (what you code is trying to do), or create an array of instances of objects straight up. Code:
Code:
int **pa = new int*[10]; //array of 10 pointers (to integers)
for (int n=0; n<10; n++)
pa[n] = new int;
//or
int *a = new int[10]; //done, array of 10 integers
You can do the same with class objects, but the first method requires a default constructor in the object your are creating, where the second method does not. Also, you have more to delete using the second method
Clear anything up?
gg