Can you use new to declare a two-dimensional array from a pointer? So far, I have this:
int main()
{
float *a;
a = new float[1][1];
return 0;
}
I get the following error in the line with the new statement:
'=' : cannot convert from 'float (*)[1]' to 'float *'
Can you not declare a two-dimensional array from a pointer?
Thanks