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

📄 modeldoc.h

📁 一个模式识别的小程序
💻 H
字号:
// modelDoc.h : interface of the CModelDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MODELDOC_H__E08C7E84_6FD4_4E9E_97B9_E661D2DFAF19__INCLUDED_)
#define AFX_MODELDOC_H__E08C7E84_6FD4_4E9E_97B9_E661D2DFAF19__INCLUDED_

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

#include <afxtempl.h>

typedef CArray<double,double&> dArray;
typedef CArray<CPoint,CPoint&> PTArray;

typedef struct BiTNode{
	int data;
	struct BiTNode *lchild,*rchild;
}BiTNode,*BiTree;

class CModelDoc : public CDocument
{
protected: // create from serialization only
	CModelDoc();
	DECLARE_DYNCREATE(CModelDoc)

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	BiTree BT;
	int count;
	void BuildT(BiTree &T);
	CPoint GetMiddlePoint(PTArray *x);
	void GetLine(PTArray *l, PTArray *r, double *a, double *b);
	PTArray rpoints,lpoints,mid;
	dArray aa,bb;
	virtual ~CModelDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CModelDoc)
	afx_msg void OnProcess();
	afx_msg void OnUpdateProcess(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MODELDOC_H__E08C7E84_6FD4_4E9E_97B9_E661D2DFAF19__INCLUDED_)

⌨️ 快捷键说明

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