Operation PRI

xiaoxiao2021-03-06  66

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:

FELEMATOFMATRIXA = * (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:

FELEMATRIXA = * (Float *) PPMatrixa Matrixa.cols * i k);

That Will Access The Right Value in Array [i] [k]

转载请注明原文地址:https://www.9cbs.com/read-118257.html

New Post(0)