Difference between revisions of "Struct Reference"
Changed the structure array example
imported>Plplecuyer |
imported>Qazaaq (Changed the structure array example) |
||
Line 50: | Line 50: | ||
=== Examples === | === Examples === | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Create a new point | ; Create a new point structure. | ||
Point myPoint = new Point | Point myPoint = new Point | ||
</source> | </source> | ||
<br> | <br> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Create an array of five | ; Create an array of five new point structures. | ||
Point[] | Point[] array = new Point[5] | ||
array[0] = new Point | |||
array[1] = new Point | |||
array[2] = new Point | |||
array[3] = new Point | |||
array[4] = new Point | |||
</source> | </source> | ||