[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: c++: 2D array
T* operator[](int i) should do it.
SOj.
On Fri, 22 Sep 2000, Shridhar Daithankar wrote:
> Hi all
>
> What's the function prototype for overloading [][]operator?
>
> I think of following..
>
> T& operator[](int i);
> T* operator[](T& ptr);
>
> What do you think?
>
> Bye
> Shridhar
>
>
--
Sojan James
National Semi. India Designs Ltd.
7/6 Brunton Road, Bangalore 560025. India.
Ph: 5587918/919/920 ext. 308