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

📄 romberdlg.h

📁 采用Romberg积分方法
💻 H
字号:
// RomberDlg.h : header file
//

#if !defined(AFX_ROMBERDLG_H__829E29A8_6CAD_4D81_AA01_FE1CBF31E8B3__INCLUDED_)
#define AFX_ROMBERDLG_H__829E29A8_6CAD_4D81_AA01_FE1CBF31E8B3__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CRomberDlg dialog

class CRomberDlg : public CDialog
{
// Construction
public:

	double	m_dRombergValue;
	CFont FontScale;
	 
	void DrawWave(CDC *pDC);
	double fun ( double x );
	double Get_T_N(int n,double low,double up );
	void Romberg(double Error,double up_limit,double low_limit,double &res);
	CRomberDlg(CWnd* pParent = NULL);	// standard constructor
	

// Dialog Data
	//{{AFX_DATA(CRomberDlg)
	enum { IDD = IDD_ROMBER_DIALOG };
	CString	m_strFunction;
	float	m_fLowerLimit;
	float	m_fUpperLimit;
	float	m_fRange_X;
	float	m_fRange_Y;
	int		m_nScaleNum_X;
	int		m_nScaleNum_Y;
	double	m_dRombergError;
	BOOL	m_bFillRect;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CRomberDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnDrawmap();
	afx_msg void OnDefaultSet();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
		CDC *pDC;             //屏幕绘图设备
		CDC memDC;            //内存绘图设备
};

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

#endif // !defined(AFX_ROMBERDLG_H__829E29A8_6CAD_4D81_AA01_FE1CBF31E8B3__INCLUDED_)

⌨️ 快捷键说明

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