home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!umn.edu!news.d.umn.edu!ub.d.umn.edu!not-for-mail
- From: cbusch@ub.d.umn.edu (Chris)
- Newsgroups: comp.lang.c++
- Subject: Overloading [] for 2d+ matrixes
- Date: 4 Jan 1993 20:27:33 -0600
- Organization: University of Minnesota, Duluth
- Lines: 14
- Message-ID: <1iarmlINN882@ub.d.umn.edu>
- NNTP-Posting-Host: ub.d.umn.edu
-
- I been programming in C++ for quite a while now, but something
- occurred to me, how can you overload [] for 2d or 3d plus matrices?
- Apparently the only allowable syntax is:
- myclass::operator [] (int);
-
-
- --
- -=-=-=-=-=-=-=-=-= Chris Busch cbusch@ub.d.umn.edu =-=-=-=-=-=-=-=-=-=-
- C(o_o)) _ "The use of COBOL cripples the
- (=) (_ -|- -|- is the mind; its teaching should,
- --|-- language of choice. therefore, be reguarded as a
- /^\ Protest the use of BASIC! criminal offense." -E.W. Dijkista
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
-