Hi,
I have a class which contains a two-dimensional array. I need to
overload something like the [][] operator so that I'm able to access the
internal array elements via the class object. For example:
Matrix a = new Matrix(10,10);
a[1][1] = 6;
Is this possible? How can I simulate a two dimensional array using a
class in c++? Thanks
-Andre
I have a class which contains a two-dimensional array. I need to
overload something like the [][] operator so that I'm able to access the
internal array elements via the class object. For example:
Matrix a = new Matrix(10,10);
a[1][1] = 6;
Is this possible? How can I simulate a two dimensional array using a
class in c++? Thanks
-Andre
Comment