How do I overload the subscript operator for multi-dimensions?
Would the signature need to be
orCode:int& MyArray::operator [][] (int y, int x);
or are none of these correct?Code:int& MyArray::operator [] (int y, int x);
I have tried a few things but I get errors all the time.



LinkBack URL
About LinkBacks



