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

📄 eightdlg.h

📁 本程序是利用盲目搜索算法中的深度优先算法实现八数码问题的解决
💻 H
字号:
// EightDlg.h : header file
//

#if !defined(AFX_EIGHTDLG_H__F2249E1E_C1F3_4311_8052_B2D5B1145BDB__INCLUDED_)
#define AFX_EIGHTDLG_H__F2249E1E_C1F3_4311_8052_B2D5B1145BDB__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CEightDlg dialog

class CEightDlg : public CDialog
{
// Construction
public:
	CString Value(int i);
	void GetPoint();
	CEightDlg(CWnd* pParent = NULL);	// standard constructor
	int match();
	void show();
    void leave();
	void left(int x);
	void right(int x);
	void up(int x);
	void down(int x);

// Dialog Data
	//{{AFX_DATA(CEightDlg)
	enum { IDD = IDD_EIGHT_DIALOG };
	CButton	m_bt9;
	CButton	m_bt8;
	CButton	m_bt7;
	CButton	m_bt6;
	CButton	m_bt5;
	CButton	m_bt4;
	CButton	m_bt3;
	CButton	m_bt2;
	CButton	m_bt1;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CEightDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnButton6();
	afx_msg void OnButton7();
	afx_msg void OnButton8();
	afx_msg void OnButton9();
	afx_msg void OnButton10();
	afx_msg void OnButton11();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	char m1[2],m2[2],m3[2],m4[2],m5[2],m6[2],m7[2],m8[2],m9[2];
	char a[9];
	char b[9];
};

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

#endif // !defined(AFX_EIGHTDLG_H__F2249E1E_C1F3_4311_8052_B2D5B1145BDB__INCLUDED_)

⌨️ 快捷键说明

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