"OpalPlanet" <ecs### [at] msn com> wrote:
> #declare M = (n[p]*(my_time - tau[p])); //this is where i get the error
> Parse Error: Attempt to access uninitialized array element.
It's a good old off-by-one error due to the single character: "=" :-)
#while(p <= n_asteroids-1)
You could delete the = here, but it looks like what you'd really want to do
is add it to your other loops. I normally leave the "=" and "-1" off, and
just use "<" like #while (whatever < n_asteroids)
Charles
Post a reply to this message
|