mfctttdoc.h
来自「讲mfc的书」· C头文件 代码 · 共 62 行
H
62 行
// 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 + =
减小字号Ctrl + -
显示快捷键?