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

📄 aiproject1dlg.h

📁 人工智能搜索法解决九宫重排问题(又称8数码问题)。
💻 H
字号:
// AIProject1Dlg.h : header file
//

#if !defined(AFX_AIPROJECT1DLG_H__300BDE14_E231_45C8_9E43_B482DB1C0DAA__INCLUDED_)
#define AFX_AIPROJECT1DLG_H__300BDE14_E231_45C8_9E43_B482DB1C0DAA__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CAIProject1Dlg dialog

class CAIProject1Dlg : public CDialog
{
// Construction
public:
	int expNode[5][12];
	void LeftMove(int *node,int i);
	void DownMove(int *node,int i);
	void RightMove(int *node,int i);
	void UpMove(int *node,int i);
	int  NodeExpand(int* expTmptNode);
	
	int CostFunction1(int* costTmptNode);
	int CostFunction2(int* costTmptNode);
	int CostFunction3(int* costTmptNode);
	int end[10];
	int start[12];
	CAIProject1Dlg(CWnd* pParent = NULL);	// standard constructor
	int nodeForExp[7][12];
	int tmptNode[12];
	int nodePath[201][12];
//	int nodePath[51][12];
	int m_minPrice;
	int depthCount;
	int m_forExpNum,m_expNodeNum;

// Dialog Data
	//{{AFX_DATA(CAIProject1Dlg)
	enum { IDD = IDD_AIPROJECT1_DIALOG };
	CString	m_strEdit;	
	UINT	m_nNum1;
	UINT	m_nNum2;
	UINT	m_nNum3;
	UINT	m_nNum4;
	UINT	m_nNum5;
	UINT	m_nNum6;
	UINT	m_nNum7;
	UINT	m_nNum8;
	UINT	m_nNum9;
	int		m_nCostChose;
	UINT	m_nTimes;
	UINT	m_nDepth;
	UINT	m_nNum11;
	UINT	m_nNum12;
	UINT	m_nNum13;
	UINT	m_nNum14;
	UINT	m_nNum15;
	UINT	m_nNum16;
	UINT	m_nNum17;
	UINT	m_nNum18;
	UINT	m_nNum19;
	
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAIProject1Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAIProject1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBegin();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AIPROJECT1DLG_H__300BDE14_E231_45C8_9E43_B482DB1C0DAA__INCLUDED_)

⌨️ 快捷键说明

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