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

📄 mychessboard.h

📁 棋盘覆盖问题的算法源程序
💻 H
字号:
// MyChessBoard.h: interface for the CMyChessBoard class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYCHESSBOARD_H__ADAF75EE_8F13_4FF2_AE7C_716AC93111CD__INCLUDED_)
#define AFX_MYCHESSBOARD_H__ADAF75EE_8F13_4FF2_AE7C_716AC93111CD__INCLUDED_

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

typedef enum {backColor=0,white=1,red=2,blue=3,yellow=4,black=5} color;
//backColor作为背景,白色作为残局的颜色
class CMyChessBoard  
{
public:
	void Run(void);
	void Init(void);
	int _i_BoardWidth;  //棋盘的宽度
	int _i_BoardHeight; //棋盘的高度

	int _i_PlacedX;     //特殊方格的位置(x坐标)
	int _i_PlacedY;     //特殊方格的位置(y坐标)
	CMyChessBoard();
	virtual ~CMyChessBoard();
	unsigned int ** _p_ChessBoard;
	color        ** _p_ColorBoard;
private:
	void SetColor(int i,int j);
	unsigned int *  _p_Mem;
	color        * _p_ColorMem;
	int title;
	void FillChessBoard(int tr,int tc,int dr,int dc,int size);
	void FillColour(void);
};

#endif // !defined(AFX_MYCHESSBOARD_H__ADAF75EE_8F13_4FF2_AE7C_716AC93111CD__INCLUDED_)

⌨️ 快捷键说明

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