A
A
Hi,
I have an array of pointers defined as such:
myArray** ptr = new myArray[10];
for some reason i get a compile time error stating there is no default
constructor for myArray. The problem is that i should not need to define one
since myArray is a pointer to a pointer and so should not have a default
constructor - its a primitive data type and not an object.
Any help appreciated.
Regards,
A
I have an array of pointers defined as such:
myArray** ptr = new myArray[10];
for some reason i get a compile time error stating there is no default
constructor for myArray. The problem is that i should not need to define one
since myArray is a pointer to a pointer and so should not have a default
constructor - its a primitive data type and not an object.
Any help appreciated.
Regards,
A