test: 更新 Demo19 示例

This commit is contained in:
Luke 2025-08-01 23:34:57 +08:00
parent 2a6fa8034c
commit 4a84f37b20

View File

@ -3,11 +3,23 @@ module: Main
function: main function: main
return_type: void return_type: void
body: body:
declare cols: int = 2 declare n: int[][][][] = [
declare matrix: int[] = [1, 2, 3, 4] [
[ [17, 18], [19, 20] ],
[ [21, 22], [23, 24] ]
],
[
[ [25, 26], [27, 28] ],
[ [29, 30], [31, 32] ]
]
]
declare x: int = matrix[cols] declare i: int = 0
declare j: int = 1
declare k: int = 0
declare l: int = 0
declare x: int = n[i][j][k][l]
os.print(x) os.print(x)
end body end body
end function end function