smatrix.cpp
来自「data structures, algorithms and Applicat」· C++ 代码 · 共 18 行
CPP
18 行
// test formula based sparse matrix class
#include <iostream.h>
#include "smatrix.h"
void main(void)
{
SparseMatrix<int> A(20), B(20), C(20);
cin >> A;
cout << "Matrix A is" << endl << A;
cin >> B;
cout << "Matrix B is" << endl << B;
A.Transpose(C);
cout << "The transpose of A is" << endl << C;
A.Add(B,C);
cout << "The sum of A and B is" << endl << C;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?