Hi all,
This is a part of the header file of the TNT 2DArray class:
1 2 3 4 5 6 7 8 9 10
template <class T>
class Array2D
{
-Data
-Many more methods and these two:
T* operator[] (int i)
const T* operator[] (int i) const
}
I don't understand the difference between the two operators, how can the computer realize the two and overloading them? Can you give me a help?
Thank you very much.