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

📄 sieve.h

📁 The code for this article was written for version 1.0 of the Active Template Library (ATL). The cu
💻 H
字号:
// MSieve.h : header file
//



/////////////////////////////////////////////////////////////////////////////
// CSieveMFC command target

class CSieveMFC : public CCmdTarget
{
	DECLARE_DYNCREATE(CSieveMFC)

	CSieveMFC();		   // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSieveMFC)
	public:
	virtual void OnFinalRelease();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CSieveMFC();

	short *m_af;
	int  m_iCur;
	short m_iMaxPrime;
	short m_cPrime;

	// Generated message map functions
	//{{AFX_MSG(CSieveMFC)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
	DECLARE_OLECREATE(CSieveMFC)

	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CSieveMFC)
	afx_msg short GetNextPrime();
	afx_msg short GetMaxPrime();
	afx_msg void SetMaxPrime(short nNewValue);
	afx_msg short GetPrimes();
	afx_msg void ReInitialize();
	afx_msg void AllPrimes(LPVARIANT pv);
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()
};

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

⌨️ 快捷键说明

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