in reply to Re^3: Creating two dimensional array
in thread Creating two dimensional array

There's no rule that says that the first dimension must be rows and the second must be columns.

True, but myself I tend to prefer the array of two-valued arrays structure myself. I think of the inner arrays as "points", i.e. pairs of (x,y) values, and typically you want to do things like push/pop points from your collection of data.

But then it all depends on how the original poster is going to be graded -- I mean, on the details of the OP's application.