最强机经上的,怎么都看不懂这个array的逻辑,哪位可以帮助解释一下?{}定义了2*2之后,那个()是干嘛用的?查了很多资料没有找到类似的例子。
另外,那个do定义的i和j,从哪替换的?谢谢各位!!
6. multi array
Array multi{1:2, 2}(1,2);
Do i=1 to 2;
Do j=1 to 2;
Output=multi{I,j};
What is the corresponding values of i, j, and output.
Answer:
A 2*2 multi-array, only two initial values, so the array is following
(1 2
. .)
, that means
i j output
1 1 1
1 2 2
2 1 .
2 2 .