Creating an Array
In this task, the goal is to create an array.
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.
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]}