二维数组本质上是以数组作为数组元素的数组,即“数组的数组”,类型说明符 数组名[常量表达式][常量表达式]。二维数组又称为矩阵,行列数相等的矩阵称为方阵。对称矩阵a[i][j] = a[j][i],对角矩阵:n阶方阵主对角线外都是零元素。
然后,值(字符串或数值)存储到一个二维数组中,读取完整个工作表之后,该数组被返回给调用例程。
The value, string or numeric, is then stored in a two-dimensional array, which is returned to the calling routine after the whole sheet has been read.
虽然二维数组与线性代数中的矩阵类似,但是对它们的操作(比如乘)与线性代数中的操作(比如矩阵乘)是完全不同的。
Even though two-dimensional arrays are similar to matrices from linear algebra, operations (such as multiply) have nothing to do with the operations in linear algebra (such as matrix multiplication).
这个子程序可以对一维或者二维数组进行排序。
应用推荐