⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smatrix2.cpp

📁 数据结构c++语言描述 Borland C++实现
💻 CPP
字号:

// test formula based sparse matrix class

#include <iostream.h>
#include "smatrix2.h"

void main(void)
{
   try{
      SparseMatrix<int> A(2), B(2), 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;
      }
   catch (...) {
      cerr << "An exception has occurred" << endl;
      }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -