While doing EX22PG199 in the book written by Paul.Kelly, I want to take out the value in an two dim array using the following code:
fElementOfMatrixA=*(float*)ppMatrixA + MatrixA.Cols*i + k;
it doesn't work properly,because the last step is to plus the value with k,the address will be wrong.
the right code should be:
fElementOfMatrixA=*((float*)ppMatrixA + MatrixA.Cols*i + k);
that will access the right value in array[i][k]