📄 bitmatrix.cpp
字号:
// BitMatrix.cpp: implementation of the CBitMatrix class.
//
//////////////////////////////////////////////////////////////////////
//#include "stdafx.h"
//#include "TXTCompare.h"
#include "BitMatrix.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
/*
inline CBitMatrix::CBitMatrix(unsigned int rows, unsigned int cols)
: rows_ (rows),
cols_ (cols),
data_ (new int[rows * cols])
{
if (rows == 0 || cols == 0)
throw; //BadIndex("Matrix constructor has 0 size");
}
inline CBitMatrix::~CBitMatrix()
{
delete[] data_;
}
inline int& CBitMatrix::operator() (unsigned int row, unsigned int col)
{
if (row >= rows_ || col >= cols_)
throw; //BadIndex("Matrix subscript out of bounds");
return data_[cols_*row + col];
}
inline int CBitMatrix::operator() (unsigned int row, unsigned int col) const
{
if (row >= rows_ || col >= cols_)
throw; //BadIndex("const Matrix subscript out of bounds");
return data_[cols_*row + col];
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -