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

📄 dlgpaintqipan.h

📁 算法分析里的棋盘覆盖问题
💻 H
字号:
#if !defined(AFX_DLGPAINTQIPAN_H__D537D527_FA87_43E3_BA50_8BC91D0044AD__INCLUDED_)
#define AFX_DLGPAINTQIPAN_H__D537D527_FA87_43E3_BA50_8BC91D0044AD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgPaintQipan.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgPaintQipan dialog
#include "math.h"

class CDlgPaintQipan : public CDialog
{
// Construction
public:
	void PaintOne(CPaintDC &dc,CRect &rc,int row,int col,int flag,int num);
	int cover(int tr, int tc, int dr, int dc, int size);
	void SetSize(int size, int length);
	CDlgPaintQipan(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgPaintQipan)
	enum { IDD = IDD_DIALOG_PAINTQIPAN };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
private:
	int m_size;     //棋盘规模大小k
	int m_length;   //棋盘单元格的边长

	int m_sum;      //三角板的数目
	int m_qipan[100][100];  //棋盘每个单元格的标记
	int m_num[4]; //各种类型三格板的数目
	int m_flag[100]; //标记单元格属于哪种型号

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgPaintQipan)
	afx_msg void OnPaint();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DLGPAINTQIPAN_H__D537D527_FA87_43E3_BA50_8BC91D0044AD__INCLUDED_)

⌨️ 快捷键说明

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