NQueenDlg.h
资源名称:NQueen.rar [点击查看]
上传用户:hncsjd
上传日期:2022-07-08
资源大小:3772k
文件大小:2k
源码类别:
其他智力游戏
开发平台:
Visual C++
- // NQueenDlg.h : header file
- //
- #if !defined(AFX_NQUEENDLG_H__5244C139_5600_49FD_9DD5_827802C2ECF4__INCLUDED_)
- #define AFX_NQUEENDLG_H__5244C139_5600_49FD_9DD5_827802C2ECF4__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CNQueenDlg dialog
- class CNQueenDlg : public CDialog
- {
- // Construction
- public:
- CNQueenDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CNQueenDlg)
- enum { IDD = IDD_NQUEEN_DIALOG };
- long m_N;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CNQueenDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CNQueenDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnAbout();
- afx_msg void OnChangeN();
- afx_msg void OnJudge();
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- int cell; //棋盘中每格的大小(宽和高)
- int w, h; //棋盘宽度和高度
- int *queen[21];//queen[i][j]为1表示该位置上已经放置了一个皇后
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_NQUEENDLG_H__5244C139_5600_49FD_9DD5_827802C2ECF4__INCLUDED_)