On Freitag, 9. April 2004 15:03, Jon Berndt wrote:
> I am debuggin the additions to the Table
> 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];
>
> ??
Hmm, two possibilities.
You are talking about FGTable, I think.
Either you have to use the array of arrays solution. This is required in this
case if the array *needs* to have a dynamic size.
Alternatively I can see for this application and for debugging, depends on
what you debug, that you declare
double Data[one sufficieltly large number][an other sufficiently largenumber];
instead of
double** Data;
Using this you can just use the syntax from above to access the array members.
As told, not for production, only for debuging ...
So what is the problem? What do you need to debug?
Greetings
Mathias
--
Mathias Fr�hlich, email: [EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel