📄 seekview.h
字号:
// seekView.h : interface of the CSeekView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SEEKVIEW_H__8B193EA6_829C_44E7_8474_59F08A434179__INCLUDED_)
#define AFX_SEEKVIEW_H__8B193EA6_829C_44E7_8474_59F08A434179__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct path {int x;int y;};
class CSeekView : public CView
{
protected: // create from serialization only
CSeekView();
DECLARE_DYNCREATE(CSeekView)
// Attributes
public:
CSeekDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSeekView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
long totalSteps;
void ClearScreen();
int m_interval;
BOOL m_bAnimation;
void Print();
void PrintGrapth(int x,int y,bool clean,int step,bool bDelay=true);
int FindPath(int,int,int);
virtual ~CSeekView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSeekView)
afx_msg void OnStartInput();
afx_msg void OnStartRun();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
bool flag[10][10];
int pathNum;
void PrintResult();
int y;
int x;
int n;
path *pArray;
path *pathRecord;
};
#ifndef _DEBUG // debug version in seekView.cpp
inline CSeekDoc* CSeekView::GetDocument()
{ return (CSeekDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SEEKVIEW_H__8B193EA6_829C_44E7_8474_59F08A434179__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -