|
From: Alan T. <ala...@3n...> - 2001-01-07 02:29:05
|
Also, array elements start at 0, not 1. So, a[0] is the first element of
array a. Alan
----- Original Message -----
From: "Alan Thomas" <ala...@3n...>
Sent: Saturday, January 06, 2001 3:33 PM
Subject: RE: Program causes error
> Scone,
> Your syntax for the "for" loops is wrong. For example,
> instead of
>
> for(u=1;u++;u<=((s/2)+1))
>
> you should have written
>
> for(u=1; u<=((s/2)+1);u++)
>
> This is causing you to write past the end of the array "a", resulting in
an
> illegal operation. --- Alan
>
> for(u=1;u++;u<=((s/2)+1))
> { a[u]=0;
> }
|