Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 5/Multidimensional arrays/fr: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11[[Basic Pascal Tutorial/fr|Tutoriel de Pascal Objet]] : Types de données / **Tableaux multidimensionnels**
22
3-Vous pouvez avoir des tableaux à plusieurs dimensions :
4-```
3+Vous pouvez avoir des tableaux à plusieurs dimensions :
4+
5+``` pascal
56type
6- datatype = array [enum_type1, enum_type2] of datatype;
7+ datatype = array [enum_type1, enum_type2] of datatype;
78```
89
9-La virgule sépare les dimensions et faire référence au tableau, sera fait comme cela :
10-```
10+La virgule sépare les dimensions et faire référence au tableau, sera fait comme cela :
11+
12+``` pascal
1113a [5, 3]
1214```
1315
14-Les tableaux à deux dimensions sont utiles pour les programmeurs de jeux de plateaux. Un plateau de morpion pourrait avoir les déclarations de types et de variables :
15-```
16+Les tableaux à deux dimensions sont utiles pour les programmeurs de jeux de plateaux. Un plateau de morpion pourrait avoir les déclarations de types et de variables :
17+
18+``` pascal
1619type
17- StatusType = (X, O, Blank);
18- BoardType = array[1..3,1..3] of StatusType;
19- var
20- Board : BoardType;
20+ StatusType = (X, O, Blank);
21+ BoardType = array[1..3,1..3] of StatusType;
22+var
23+ Board : BoardType;
2124```
2225
23-Vous pouvez initialiser le plateau avec :
24-```
26+Vous pouvez initialiser le plateau avec :
27+
28+``` pascal
2529for count1 := 1 to 3 do
26- for count2 := 1 to 3 do
27- Board[count1, count2] := Blank;
30+ for count2 := 1 to 3 do
31+ Board[count1, count2] := Blank;
2832```
2933
30-Vos pouvez, bien sûr, utiliser des tableaux à 3 dimensions ou plus encore.
31-
32-[[Basic Pascal Tutorial/Chapter 5/1-dimensional arrays/fr|←]] | [[Basic Pascal Tutorial/Contents/fr|Sommaire]] | [[Basic Pascal Tutorial/Chapter 5/Records/fr|→]]
33----|---|---
34+Vos pouvez, bien sûr, utiliser des tableaux à 3 dimensions ou plus encore.
3435
3536---
36-*From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 5/Multidimensional arrays/fr", as the Internet Archive kept it on 2023-03-27. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
37+*From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 5/Multidimensional arrays/fr", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history