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

📄 cell.h

📁 迷宫问题
💻 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 + -