Re: [Dev-C++] newbie questions without answer
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Carlos d. M. <cg...@wo...> - 2002-08-11 15:55:08
|
In overload (I have just found where I sent it)you type //bu ne? int the overloading of the subscript overload. I understand it as saying "Overload it for this? This does nothing an array do". Wrong, the key of that overload is the assert before the return, it makes sure the subscript given is inside the valid range of the array. The first version returns a variable which you'll can change, and the second a const variable. |