Showing the changes to examples/array/array_mdim.ck (1 of 10 files). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | |||
| 1 | // 15.ck : multi-dimensional array instantiation | 1 | // multi-dimensional array instantiation (15.ck) |
| 2 | 2 | ||
| 3 | // delcare int array 2x2x2 | 3 | // delcare int array 2x2x2 |
| 4 | int a[2][2][2]; | 4 | int a[2][2][2]; |
| @@ -11,4 +11,5 @@ float b[2][2][2]; · 6 unmodified lines | |||
| 11 | [ [1,2], [3,4] ] @=> int c[][]; | 11 | [ [1,2], [3,4] ] @=> int c[][]; |
| 12 | 12 | ||
| 13 | // test | 13 | // test |
| 14 | if( a[1][1][1] == 5 && b[1][1][1] == 5.0 && c[0][1] == 2 ) <<<"success">>>; | 14 | if( a[1][1][1] == 5 && b[1][1][1] == 5.0 && c[0][1] == 2 ) |
| 15 | <<<"success">>>; | ||