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

📄 bitmatrix.cpp

📁 A File Comparer with visual output
💻 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 + -