Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!grasp.cis.upenn.edu!alberto From: alberto@grasp.cis.upenn.edu (Alberto Izaguirre) Newsgroups: comp.lang.c++ Subject: Array implementations in C++. Looking for help... Message-ID: <39202@netnews.upenn.edu> Date: 15 Mar 91 22:27:24 GMT Sender: news@netnews.upenn.edu Reply-To: alberto@grasp.cis.upenn.edu (Alberto Izaguirre) Organization: University of Pennsylvania Lines: 29 Nntp-Posting-Host: grasp.cis.upenn.edu I have two straightforward questions. The first one is : 1- Do anyone has a class (whatever name) that allows to declare multidimensional arrays, where the index for each dimension is of a particular (possibly different) type. Eg. something like: double a[int 5][double 6][enum c]; that allows to initialize a matrix a , where the first index is an integer in the range 1-5 (int) , the second index is in the range 0-6 (double), and the third in the range of the (enum c). may be the indexes have to be of types that can be enumerated... The operations could be : a[2][3.0][c1] = 3.0; b = a[4][3.0][c2]; I have only made this example for onne index. I think that to do in a number of indexes that is bigger than 1 (annd that can be arbitrary) looks pretty difficult... May be there is not such a solution... If someone finds one, can you mail me yours. Tx, Alberto 2- The second question is easier. Is the latest version of g++ (i.e. I think g++-39) compatible with version 2.0 of AT&T? If nnot , do you know the main differences,. Tx again...