文件名称:EX_4_1
介绍说明--下载内容均来自于网络,请自行研究使用
编制一个算术表达式求值的程序
(1)以十字链表表示稀疏矩阵,实现两个矩阵相加,相减和相乘的运算。稀疏矩阵的输入形式采用三元组表示,而运算结果的矩阵则以通常的阵列形式列出。
(2)首先应输入矩阵的行数和列数,并判别给出的两个矩阵的行、列数对于所要求作的运算是否匹配。
(3)程序对三元组的输入顺序没有特定的要求,可以以任何的次序输入,程序会对其进行查找,插入到适合的位置上。
(4)在用三元组表示稀疏矩阵时,相加或相减所得结果矩阵应该另生成,乘积矩阵也用十字链表存放。
-compiled an arithmetic expression evaluates procedures (1) with a crossbow chain said sparse matrix, 2 matrix to achieve together, subtract and multiply arithmetic. Sparse Matrix input form using ternary group, and the results of the matrix operation was the usual array listed. (2) should first input matrix number of rows and columns, and discriminant given two Matrix OK, Columns for the required for the operation would match. (3) procedures for the importation of triple sequence is no specific request, in any order of entry, its procedures for identifying, inserted into the appropriate location. (4) using triple said sparse matrix, additive or subtraction results matrix should be another generation, Matrix also used the product Cross Chain store.
(1)以十字链表表示稀疏矩阵,实现两个矩阵相加,相减和相乘的运算。稀疏矩阵的输入形式采用三元组表示,而运算结果的矩阵则以通常的阵列形式列出。
(2)首先应输入矩阵的行数和列数,并判别给出的两个矩阵的行、列数对于所要求作的运算是否匹配。
(3)程序对三元组的输入顺序没有特定的要求,可以以任何的次序输入,程序会对其进行查找,插入到适合的位置上。
(4)在用三元组表示稀疏矩阵时,相加或相减所得结果矩阵应该另生成,乘积矩阵也用十字链表存放。
-compiled an arithmetic expression evaluates procedures (1) with a crossbow chain said sparse matrix, 2 matrix to achieve together, subtract and multiply arithmetic. Sparse Matrix input form using ternary group, and the results of the matrix operation was the usual array listed. (2) should first input matrix number of rows and columns, and discriminant given two Matrix OK, Columns for the required for the operation would match. (3) procedures for the importation of triple sequence is no specific request, in any order of entry, its procedures for identifying, inserted into the appropriate location. (4) using triple said sparse matrix, additive or subtraction results matrix should be another generation, Matrix also used the product Cross Chain store.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EX_4_1.c