home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18691 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.0 KB

  1. 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
  2. From: cbusch@ub.d.umn.edu (Chris)
  3. Newsgroups: comp.lang.c++
  4. Subject: Overloading [] for 2d+ matrixes
  5. Date: 4 Jan 1993 20:27:33 -0600
  6. Organization: University of Minnesota, Duluth
  7. Lines: 14
  8. Message-ID: <1iarmlINN882@ub.d.umn.edu>
  9. NNTP-Posting-Host: ub.d.umn.edu
  10.  
  11.    I been programming in C++ for quite a while now, but something
  12. occurred to me, how can you overload [] for 2d or 3d plus matrices?
  13. Apparently the only allowable syntax is:
  14.    myclass::operator [] (int);
  15.  
  16.  
  17. --
  18. -=-=-=-=-=-=-=-=-= Chris Busch     cbusch@ub.d.umn.edu =-=-=-=-=-=-=-=-=-=-
  19.  C(o_o))        _                        "The use of COBOL cripples the
  20.    (=)         (_ -|- -|- is the         mind; its teaching should, 
  21.   --|--        language of choice.       therefore, be reguarded as a
  22.    /^\      Protest the use of BASIC!    criminal offense." -E.W. Dijkista
  23. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  24.  
  25.