sieve.h

来自「The code for this article was written fo」· C头文件 代码 · 共 59 行

H
59
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?