bitmatrix.cpp
来自「A File Comparer with visual output」· C++ 代码 · 共 42 行
CPP
42 行
// 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 + =
减小字号Ctrl + -
显示快捷键?