[chuck-users] arrays holding arrays?
Kassen
signal.automatique at gmail.com
Fri Aug 4 14:20:14 EDT 2006
> an example:
>
> int foo[4][8][32][35];
>
> So...
>
> foo[x][y][z][w] is of type int
> foo[x][y][z] is of type int [ ]
> foo[x][y] is of type int [ ] [ ]
> ...
> foo is of type int [ ] [ ] [ ] [ ]
>
> x, y, z, w represent integers in this example.
Ok, so in cases like that it's especially important to declare them in the
right order. In the 2D case as I understand it you can easily treat a row
as if it were a array (which is waht I wanted) but it's less easy to treat
a column as one, right?
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20060804/01cd1a32/attachment.htm
More information about the chuck-users
mailing list