You allocated memory for size1, size2 and size3 but never fill it with numbers.
Furthermore you dont need to allocate
2*sizeof(int)
malloc(sizeof(int)) is sufficient, since the sizes only contain
one integer:
Code
int *size1;
size1 = malloc(sizeof(int));
*size1 = 3; // or what length of the array you desire;-)
Then I can't really follow what you try to do
The array
declaration should be something like this:
Code
float *testArray;
The definition of the array has to be somewhere:
Code
testArray = new float[*size1][*size2][*size3]
This is a normal dynamic array. There are possibilities to get an array of pointers too.
Maybe you should be more specific
This post was edited by dipdipdip on Dec 12 2012 03:32pm