22.08.2010, 21:16
Read pawn-lang.pdf and scroll to page 64:
Quote:
• Progressive initializers for arrays The ellipsis operator continues the progression of the initialization constants for an array, based on the last two initialized elements. The ellipsis operator (three dots, or “...”) initializes the array up to its declared size. Examples: Listing: array initializers new a[10] = { 1, ... } // sets all ten elements to 1 new b[10] = { 1, 2, ... } // b = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 new c[8] = { 1, 2, 40, 50, ... } // c = 1, 2, 40, 50, 60, 70, 80, 90 new d[10] = { 10, 9, ... } // d = 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 |