Creating an Array: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 25: | Line 25: | ||
myArray2 = #("Item1", "Item2") |
myArray2 = #("Item1", "Item2") |
||
==[[Python]]== |
|||
'''Interpeter:''' Python |
|||
'''Libraries:''' [[None are needed]] |
|||
Array=[ |
|||
[0,0,0,0,0,0], |
|||
[1,1,1,1,1,1], |
|||
[2,2,2,2,2,2], |
|||
[3,3,3,3,3,3] |
|||
] |
|||
#You would call the array by this code. This will call the 3rd 1 on the second list |
|||
Array[1][3]} |
|||
{{array operation}} |
Revision as of 15:49, 21 January 2007
Creating an Array
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
In this task, the goal is to create an array.
mIRC
Interpeter: mIRC Script Editor Libraries: mArray Snippet
alias creatmearray { .echo -a $array_create(MyArray, 5, 10) }
Visual Basic 2005.Net
Dim myArray as new ArrayList
Dim myArray2 as new ArrayList = { "Item1", "Item2" }
Javascript
var myArray = new Array();
var myArray2 = new Array("Item1","Item2");
3DS Max 8 - MaxScript
myArray = #()
myArray2 = #("Item1", "Item2")
Python
Interpeter: Python Libraries: None are needed
Array=[ [0,0,0,0,0,0], [1,1,1,1,1,1], [2,2,2,2,2,2], [3,3,3,3,3,3] ] #You would call the array by this code. This will call the 3rd 1 on the second list Array[1][3]}