📄 cellid.cpp
字号:
// CellID.cpp: implementation of the CCellID class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Prog.h"
#include "CellID.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCellID::CCellID(int nRow, int nCol):row(nRow), col(nCol)
{
}
CCellID::~CCellID()
{
}
int CCellID::IsValid()
{
return (row>=0 && col>=0);
}
int CCellID::operator==(const CCellID& rhs)
{
return (row == rhs.row && col == rhs.col);
}
int CCellID::operator!=(const CCellID& rhs)
{
return !operator==(rhs);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -