📄 water.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -