Code:
int main(void)
{
double** array; //pointer to a pointer
int x,y;
array = new double*[10];//Set first dimentions
for(x = 0;x < 10;x++)
array[x] = new double[3];//Set second dimentions
for(x = 0;x < 10;x++)
for(y = 0;y < 3;y++)
array[x][y] = 2.69; //Do stuff with array
for(x = 0;x < 10;x++)
for(y = 0;y < 3;y++)
cout << array[x][y] << endl;//Show results
for(x = 0;x < 10;x++)
delete [] array[x];//Clean up!!
delete [] array;//Clean up!!!
return 0;
}
Bit long winded, but it should work......the plus to this is you can substitute the 10 & the 3 with variables, so the array can be whatever size you wish