I\'d like to overload operator[][] to give internal access to a 2D array of char in C++.
operator[][]
Right now I\'m only overloading operator[], which goes
operator[]
There is no operator[][]. Evaluating a[x][y] first calls operator[] on a, and then operator[] again on the result of that.
a[x][y]
a
So the operator[] of your object has to return another object with its own operator[], which then will access the requested value.