home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:15955 comp.std.c++:1520
- Newsgroups: comp.lang.c++,comp.std.c++
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!news.cs.columbia.edu!duanyang
- From: duanyang@cs.columbia.edu (Duanyang Guo)
- Subject: operator [][]
- Message-ID: <BxFt8r.2Kt@cs.columbia.edu>
- Sender: news@cs.columbia.edu (The Daily News)
- Organization: Columbia University Department of Computer Science
- Date: Mon, 9 Nov 1992 07:10:02 GMT
- Lines: 15
-
- 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
-
-