文件名称: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
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.