📄 cell.h
字号:
//The class Cell represents one square in the map
#if !defined CELL_H
#define CELL_H
class Cell
{
public:
Cell (int i=0, int j=0, int k=-1); //i,j为此格的列和行坐标,k为前驱格子在队列数组中的序号
bool operator == (const Cell& c) const;
bool operator != (const Cell& c) const;
Cell operator = (const Cell& c);
private:
int x, y, pre; //x,y为此格的列和行坐标, pre为前驱格子在队列数组中的序号
friend class Building;
friend class Stack_Building;
friend class Queue_Building;
friend class Opt_Building;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -