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

📄 vlocation.cpp

📁 compiler principle how to ananilyze
💻 CPP
字号:
// VLocation.cpp: implementation of the VLocation class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "VLocation.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

VLocation::VLocation(): row(-1), 
column(-1) {}

VLocation::VLocation(int arow, int acolumn):
	row(arow), column(acolumn)
{

}

bool VLocation::operator==(const VLocation& v) const {
	return row == v.row && column == v.column;
}

string VLocation::toStr() const {
	return string("(" + iToString(row) + ", " + iToString(column) + ")");
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -