📄 aiwork1view.h
字号:
// AIWork1View.h : interface of the CAIWork1View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_AIWORK1VIEW_H__FDEA6A5D_3DFD_4EF1_8EF3_BCE27F349DCB__INCLUDED_)
#define AFX_AIWORK1VIEW_H__FDEA6A5D_3DFD_4EF1_8EF3_BCE27F349DCB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Stack.h"
class CAIWork1View : public CScrollView
{
protected: // create from serialization only
CAIWork1View();
DECLARE_DYNCREATE(CAIWork1View)
// Attributes
public:
CAIWork1Doc* GetDocument();
CString m_strPathCount;
BOOL IsFinish;
datastruct m_sData;
enum Direction{RIGHT,DOWN,LEFT,UP};
Direction m_iDirection;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAIWork1View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CString m_strTime;
CString m_strOutHelp;
CString m_strBeginInfo;
virtual ~CAIWork1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CAIWork1View)
afx_msg void OnConfig();
afx_msg void OnEight();
afx_msg void OnUpdateEight(CCmdUI* pCmdUI);
afx_msg void OnResolve();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_hitAgain;
CPoint m_tableLU;
CPoint m_tableRD;
void TurnBack(int &xZero,int &yZero);
BOOL IsLegal();
BOOL IsInList();
BOOL BACKTRACK(int xZero,int yZero);
short m_iLMatrix;
int m_iDepth;
BOOL m_bIsEight;
BOOL m_bIsFifteen;
int m_xZero;
int m_yZero;
int m_store[16][16];
int matrix[16][16];
CStack m_dataList;
};
#ifndef _DEBUG // debug version in AIWork1View.cpp
inline CAIWork1Doc* CAIWork1View::GetDocument()
{ return (CAIWork1Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_AIWORK1VIEW_H__FDEA6A5D_3DFD_4EF1_8EF3_BCE27F349DCB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -