i am getting difficulties understanding the following piece of code:
(assuming T being any variable type)
*M = new T* [xdim]; **M = new T [xdim*ydim];
if (*M==NULL || **M==NULL) return false;
for(sint i=1; i < xdim; i++)
(*M)[i] = (*M)[i-1] + ydim;
Thanks in advance
(assuming T being any variable type)
*M = new T* [xdim]; **M = new T [xdim*ydim];
if (*M==NULL || **M==NULL) return false;
for(sint i=1; i < xdim; i++)
(*M)[i] = (*M)[i-1] + ydim;
Thanks in advance
Comment