state.h

来自「迷宫智能A*搜索的算法实现」· C头文件 代码 · 共 30 行

H
30
字号
// State.h: interface for the CState class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STATE_H__8E4285D1_7B9B_408D_BFCF_D3B2E8C2024D__INCLUDED_)
#define AFX_STATE_H__8E4285D1_7B9B_408D_BFCF_D3B2E8C2024D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CState  
{
public:
	CState();
	CState(int r,int c, int d,int co=0,CState* f=0);
	virtual ~CState();
	bool operator == (CState x);
	CState operator = (CState x);
	int	R;
	int	C;
	int D;
	bool	visited;
	int cost;
	CState*	father;
	vector<CState*>	son;
};

#endif // !defined(AFX_STATE_H__8E4285D1_7B9B_408D_BFCF_D3B2E8C2024D__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?