lets say I have a class looking like this

class A
type *multiArray;

by overloading the [] operator I would get something like this
type &operator[](type x)
return *(multiArray+x);
so I could be able to get with A[x] the xth element of the array that multiArray is pointing at

what I need:
that I can use A[x][y] to get the *(multiArray+maxDim*x+y) value

alternatively I could even use A[x,y] to get the same value, it isn't that much of a problem, I just wan't to be able to do it somehow :D

pls help