On Fri, Apr 09, 2004 at 08:03:49AM -0500, Jon Berndt wrote: > class. All I want right now is how do I allocate storage for a 2 > dimensional array of doubles, so that I can use the standard accessor > operators: > > myDouble = Data[n][m];
If you insist on the [][] syntax, I'd strongly recommend a std::vector< std::vector< double > > . If not, you can use one of the many C++ matrix implementations floating around, for example (shameless plug :-) cpp-lib, which is available from my homepage: http://www.cosy.sbg.ac.at/~gwesp/ Here you can access the elements by Data( n , m ) ( 1 <= n <= rows , 1 <= m <= columns ) (Similar to FORTRAN notation). Kind regards, -Gerhard -- Gerhard Wesp o o Tel.: +41 (0) 43 5347636 Bachtobelstrasse 56 | http://www.cosy.sbg.ac.at/~gwesp/ CH-8045 Zuerich \_/ See homepage for email address! _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel