vlocation.cpp
来自「compiler principle how to ananilyze」· C++ 代码 · 共 27 行
CPP
27 行
// 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 + =
减小字号Ctrl + -
显示快捷键?