Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing C++ strings by reference
#18
a->cDims will be 2.
And there will be a->rgsabound[0] and a->rgsabound[1]. They define each dimension. Maybe swapped, ie 0 is the second dimension, 1 is the first, don't remember.
Then pe=p+a->rgsabound[0].cElements*rgsabound[1].cElements.
All elements are in the single memory block p that is only logically divided into dimensions.


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)