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

📄 cellid.cpp

📁 此次上传的使linux下的文件传输协议
💻 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 + -