dlgshow.h

来自「算法分析里的最近点对问题的实现」· C头文件 代码 · 共 63 行

H
63
字号
#if !defined(AFX_DLGSHOW_H__A940076F_23C2_4BE0_A316_6F88C923286A__INCLUDED_)
#define AFX_DLGSHOW_H__A940076F_23C2_4BE0_A316_6F88C923286A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgShow.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgShow dialog
#include "math.h"
#define M 100

class CDlgShow : public CDialog
{
// Construction
public:
	int QMin(int a, int b, int c);
	int QMax(int a[]);
	int QMin(int a[]);
	void SetPointNum(int num, int flag);
	bool NewMethod(int s[],int &d, int res[]);
	void tstart();
	void tend();
	double tval();
	bool OldMethod(int s[],int res[]);
	CDlgShow(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgShow)
	enum { IDD = IDD_DIALOG_SHOW };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
private:
	int m_ywS[M+M+1];
	int m_ewS1[M+1][2];
	int m_ewS2[M+1][2];
	int m_flag;


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgShow)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgShow)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DLGSHOW_H__A940076F_23C2_4BE0_A316_6F88C923286A__INCLUDED_)

⌨️ 快捷键说明

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