matrix.h

来自「矩阵类 简单的矩阵类的编写」· C头文件 代码 · 共 32 行

H
32
字号
// Matrix.h: interface for the Matrix class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MATRIX_H__1075BA8A_4449_4949_B3D5_38F627272BEE__INCLUDED_)
#define AFX_MATRIX_H__1075BA8A_4449_4949_B3D5_38F627272BEE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Matrix  
{
private:
	int m_nRow, m_nCol;
	float **m_pData;

public:
	Matrix operator +(Matrix x);
	Matrix operator =(Matrix x);

	float* operator [](int i);

	void PrintData();
	Matrix();
	Matrix(int r, int c, float *p);
	virtual ~Matrix();

};

#endif // !defined(AFX_MATRIX_H__1075BA8A_4449_4949_B3D5_38F627272BEE__INCLUDED_)

⌨️ 快捷键说明

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