Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!columbia!cubmol!ping From: ping@cubmol.BIO.COLUMBIA.EDU (Shiping Zhang) Newsgroups: comp.lang.c++ Subject: multi-dimension vectors of objects of a class Message-ID: <333@cubmol.BIO.COLUMBIA.EDU> Date: 7 Sep 89 16:40:39 GMT References: <1579@cbnewsd.ATT.COM> <4082@pegasus.ATT.COM> Reply-To: ping@cubmol.UUCP (Shiping Zhang) Organization: Dept. of Biology, Columbia Univ., New York, NY Lines: 20 Is there a way to declare a multi-dimension vector of objects of a class? I just installed g++ on sun3 with os4. I got error messages if I declared a multi-dimension vector of a class object, for example, class vector { //.. public vector(); // with no argument; ~vector(); //.. } vector v1[4]; // works ok vector v2[2][2]; // get fatal error message on this line I want know if c++ does not support multi-dimension vectors of class objects at all or only g++ doesn't, or simply it's a bug in the g++ I just installed. I appreciate any help on this matter. Thank. -ping