[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2-D arrays
Ah! I was using the css class int_Array. Guess I shd have stuck to
vanilla C. So int_Array doesn't support multi-dim?
And while we are on the subject, what diff is there betwn int arrays
that are declared as regular C arrays and css int_Array objects apart
from type access?
Randall C. O'Reilly wrote:
> "Ken Kwok" <kenkwok@cmu.edu> writes:
>
>>Does css support 2-dimensional arrays? If it does, it doesn't seem to
>>understand the standard C syntax for declaring and referencing 2-D arrays.
>
>
> works for me:
>
> css> int ary[10][10];
> css> ary[2][3] = 5;
> css> p ary[2][3];
> (Int) = 5
>
> - Randy
>
- Follow-Ups:
- Re: 2-D arrays
- From: "Randall C. O'Reilly" <oreilly@grey.colorado.edu>