Archived

This topic is now archived and is closed to further replies.

aDasTRa

[quick array question]

Recommended Posts

i have a 2d array set up like this: list[x][3] (x is an arbitrary number) i want to fill 'list' without 3(x) assignments, like:
  

list[0][0] = //number

list[0][1] = //number

...
list[x-1][2] = //number


  
i am thinking something like
  

list[0] = // number, number, number

list[1] = // number, number, number

...

  
anyone know how to do this? i appreciate the help <(o)> Edited by - aDasTRa on January 31, 2002 9:53:05 PM

Share this post


Link to post
Share on other sites
Does this work ?

  
array[0] = { nb1, nb2, nb3 }


I''ve never done this... it''s jsut theory, so that''s it !





/* Bullmax */
-------------
Reality has many forms : good and evil, black and white, ying and yang.

Share this post


Link to post
Share on other sites
no it doesn''t work; thats the first thing i tried. actually i tried all three types of brackets (, [, {, and none worked.

<(o)>

Share this post


Link to post
Share on other sites