📄 test.cpp
字号:
#include "stdlib.h"
#include "matrix.h"
#include "fstream.h"
void main(void)
{
double a[9]={2,2,3,4,5,6,7,8,9};
CMatrix m1(3,3,a);
CMatrix m2,m3,m4;
m2=!m1;
m3=m1*m2;
// m2=m2*m1;
double temp=m2[0][0];
ofstream ofile("d:\\matrix.txt");
ofile<<m1;
ofile<<m2;
ofile<<m3;
ofile.close();
ifstream ifile("data.txt");
ifile>>m4;
ifile.close();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -