water.h
来自「寻径算法演示平台~~提供给计算机博弈爱好者参考学习」· C头文件 代码 · 共 44 行
H
44 行
// Water.h: interface for the CWater class.
//
//////////////////////////////////////////////////////////////////////
//#include "node.h"
#include "SearchPathEngine.h"
#if !defined(AFX_WATER_H__2BEE8FEF_1A0E_4AAC_BA88_F84813255A0A__INCLUDED_)
#define AFX_WATER_H__2BEE8FEF_1A0E_4AAC_BA88_F84813255A0A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define Height 120
#define Width 176
class CWater:public CSearchPathEngine
{
public:
CWater();
virtual ~CWater();
private:
struct node
{
node *next;
int x;
int y;
};
int writeNumber();
bool m_value[Height][Width];
node *head;
//int startX,startY,targetX,targetY;
public:
void showThePath(CDC *pDC , int showMode);
int searchThePath();
int m_map[Height][Width];
};
#endif // !defined(AFX_WATER_H__2BEE8FEF_1A0E_4AAC_BA88_F84813255A0A__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?