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

📄 mfctttdoc.h

📁 讲mfc的书
💻 H
字号:
// mfctttDoc.h : interface of the CMfctttDoc class
//
/////////////////////////////////////////////////////////////////////////////

#define EMPTY 0
#define X 1
#define O -1


class CMfctttDoc : public CDocument
{
protected: // create from serialization only
	int lastmove;
	int mylast;
	int board[9];
	CMfctttDoc();
	DECLARE_DYNCREATE(CMfctttDoc)

// Attributes
public:
	int loss;
	int wins;
	int draw;
	BOOL undo(BOOL doit);
	BOOL compare(int &x,int &y,BOOL &l,BOOL &w);
	void Play(void);
	int turn;
	void SetBoardState(int x,int y,int state);
	int GetBoardState(int x,int y);

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMfctttDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMfctttDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMfctttDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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