1 registered members (AndrewAMD),
14,661
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: array[n].property? Is this possible?
[Re: webgovernor]
#116548
03/11/07 11:13
03/11/07 11:13
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
you can find it in the manual under vars - multidimensional arrays... I don't think it's too bad. the algorithm is [number_of_elements_in_a_row*current_row + element_number_in_current_row] so, if you'd want to sort the rows, you simply have to move [3*current_row + 0] and [3*current_row + 1] and [3*current_row + 2] in order to move the entire row. It does take some time to get your head around it, I guess, but once you get it it's a great option... 
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: array[n].property? Is this possible?
[Re: Germanunkol]
#116550
03/11/07 18:51
03/11/07 18:51
|
Joined: Apr 2006
Posts: 265
vartan_s
Member
|
Member
Joined: Apr 2006
Posts: 265
|
Quote:
It does take some time to get your head around it, I guess, but once you get it it's a great option...
Yes, its useful once you get it... but isn't C-script was supposed to be easier than C++?
I mean why would they change C/C++ to make it more confusing?
|
|
|
|