This shows you the differences between two versions of the page.
fr:dim [2016/01/01 22:44] |
fr:dim [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Dim ===== | ||
+ | |||
+ | ==== Format ==== | ||
+ | |||
+ | **dim** // | ||
+ | **dim** // | ||
+ | **dim** // | ||
+ | **dim** // | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Retourne un nouveau tableau à 1 dimension de longueur //integer// ou à 2 dimensions qui peut être adressé par //row// et //column//. Selon l' | ||
+ | Le premier élément d'un tableau a l' | ||
+ | |||
+ | ==== Voir aussi ==== | ||
+ | |||
+ | [[redim|Redim]] | ||
+ | |||
+ | ==== Exemple ==== | ||
+ | |||
+ | < | ||
+ | dim z(5) | ||
+ | z = {1, 2, 3, 4, 5} | ||
+ | print z[0] + " " + z[4] | ||
+ | </ | ||
+ | affichera | ||
+ | < | ||
+ | 1 5 | ||
+ | </ | ||
+ | |||
+ | ==== Exemple 2 ==== | ||
+ | < | ||
+ | dim c$(4) | ||
+ | c$ = {" | ||
+ | print c$[2] + " " + c$[3] + " "; | ||
+ | print c$[1] + " " + c$[0] + " | ||
+ | </ | ||
+ | affichera | ||
+ | < | ||
+ | L' | ||
+ | </ | ||
+ | |||