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

📄 matrixwithtranspose.cpp

📁 datastucutre and algorithms, application, in C
💻 CPP
字号:
// test matrix transpose

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

using namespace std;
int main(void)
{
   matrix<int> x(3,2), y, z;
   for (int i = 1; i <= 3; i++)
      for (int j = 1; j <= 2; j++)
         x(i,j) = 2*i + j;
   cout << "Initialized x(i,j) = 2*i + j" << endl;
   cout << "x is" << endl;;
   cout << x << endl;

    x.transpose(y);
   cout << "Assigned y = x.transpose" << endl;
   cout << "y is" << endl;
   cout << y << endl;

   return 0;
}

⌨️ 快捷键说明

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