Topic: operator [][]


Author: duanyang@cs.columbia.edu (Duanyang Guo)
Date: Mon, 9 Nov 1992 07:10:02 GMT
Raw View
for multiple dimension array, is it possible to define
an operator [][](say for two dimensions)? I try to define
it as
int & operator[][] (int, int);

which g++ complains about it.

any idea or just sth is wrong with my try?


--
Duanyang Guo           |     (212)939-7098(O),   663-8904(H)
CS Dept, Columbia Univ.  |      Rm 625, CEPSR
New York,     NY 10027   |      Email:duanyang@cs.columbia.edu