Array: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
(Replaced Task page code with page code describing arrays.)
Line 1: Line 1:
An '''array''' is [[variable]] that stores multiple values, accessible by an [[array index]]. A '''numeric array''' allows only integer values as index values, while an '''associative array''' allows other data types.
{{task}}

'''Criteria:''' In this task the job is to demonstrate how to create, write, read, and destroy an array.<Br>
==[[mIRC]]==
'''Interpeter:''' mIRC Script Editor

'''REQUIRES:''' [[mArray Snippet]] by [[Haso Keric]]
'''3 Dimensional Array'''<br>
alias creatmearray { .echo -a $array_create(MyArray, 5, 10) }
alias write2array { echo -a $array_write(MyArray, 2, 3, Rosetta) }
alias readmyarray { echo -a $array_read(MyArray, 2, 3) }
alias killmyarray { echo -a $array_destroy(MyArray) }

Revision as of 16:14, 18 January 2007

An array is variable that stores multiple values, accessible by an array index. A numeric array allows only integer values as index values, while an associative array allows other data types.