Hi,
I have a c++ programme as follow:
void AFunction(float** p){ .....};
float p1[4][4]={{1.0f,0.7407f,0.2593f,0.0f},
{0.0f, 0.2593f, 0.7407f, 1.0f},
{0.0f, 0.1481f, 0.0741f, 0.0f},
{0.0f,-0.0741f,-0.1481f,0.0f}};
AFunction(p1);
When I compile, I was told:
cannot convert parameter 1 from 'float [4][4]' to 'float ** '
Would anyone explain why.
Thanks a lot
Qian
I have a c++ programme as follow:
void AFunction(float** p){ .....};
float p1[4][4]={{1.0f,0.7407f,0.2593f,0.0f},
{0.0f, 0.2593f, 0.7407f, 1.0f},
{0.0f, 0.1481f, 0.0741f, 0.0f},
{0.0f,-0.0741f,-0.1481f,0.0f}};
AFunction(p1);
When I compile, I was told:
cannot convert parameter 1 from 'float [4][4]' to 'float ** '
Would anyone explain why.
Thanks a lot
Qian