📄 cell.cpp
字号:
#include"cell.h"
Cell::Cell(int i, int j, int k) //k为前驱格子在队列数组中的序号
{
x=i; y=j; pre=k;
}
/*Cell::Cell(int i, int j)
{
x=i; y=j; pre=-1;
}
*/
bool Cell::operator == (const Cell& c) const
{
return (x==c.x && y ==c.y);
}
bool Cell::operator != (const Cell& c) const
{
return (x!=c.x || y !=c.y);
}Cell Cell::operator = (const Cell& c)
{
x=c.x; y=c.y; pre=c.pre;
return *this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -