home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15955 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  843 b 

  1. Xref: sparky comp.lang.c++:15955 comp.std.c++:1520
  2. Newsgroups: comp.lang.c++,comp.std.c++
  3. Path: sparky!uunet!usc!sol.ctr.columbia.edu!news.cs.columbia.edu!duanyang
  4. From: duanyang@cs.columbia.edu (Duanyang Guo)
  5. Subject: operator [][]
  6. Message-ID: <BxFt8r.2Kt@cs.columbia.edu>
  7. Sender: news@cs.columbia.edu (The Daily News)
  8. Organization: Columbia University Department of Computer Science
  9. Date: Mon, 9 Nov 1992 07:10:02 GMT
  10. Lines: 15
  11.  
  12. for multiple dimension array, is it possible to define 
  13. an operator [][](say for two dimensions)? I try to define 
  14. it as 
  15. int & operator[][] (int, int);
  16.  
  17. which g++ complains about it. 
  18.  
  19. any idea or just sth is wrong with my try? 
  20.  
  21.  
  22. -- 
  23. Duanyang Guo              |     (212)939-7098(O),   663-8904(H)   
  24. CS Dept, Columbia Univ.  |      Rm 625, CEPSR
  25. New York,     NY 10027   |      Email:duanyang@cs.columbia.edu  
  26.  
  27.