Re: A89: Matrices - BASIC question


[Prev][Next][Index][Thread]

Re: A89: Matrices - BASIC question




use the fill command.
and how are you creating the matrix?

David Demers wrote:

>     I created a 25x25 matrix called 'test', I looked at it and all of the
> values up to 25,25 were '0'.  That made sense because I hadn't put any
> values in yet.  When I typed (in the home screen and in a program)
> "5->test[10,10]" I got an error saying "dimension".  What am I doing wrong?
>     In the program, I also tried:
>
> 5->a
> for x,1,25
>   for y,1,25
>     a->test[x,y]
>   endfor
> endfor
>
> I want to make every value whatever 'a' is.
>     In advance, I appreciate the help.  This is the only problem keeping me
> from finishing my game.
> David Demers
>     led__zeppelin@msn.com


References: