📄 nonlinearequationdlg.h
字号:
// NonlinearEquationDlg.h : header file
//
#if !defined(AFX_NONLINEAREQUATIONDLG_H__24A43A7C_7504_4954_84EC_01BE18660EE1__INCLUDED_)
#define AFX_NONLINEAREQUATIONDLG_H__24A43A7C_7504_4954_84EC_01BE18660EE1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <math.h>
/////////////////////////////////////////////////////////////////////////////
// CNonlinearEquationDlg dialog
class CNonlinearEquationDlg : public CDialog
{
public:
int m_nMax;
double *X;
// Construction
public:
double FuncMethod1(double x);
double FuncMethod2(double x);
double FuncNewton(double x);
CNonlinearEquationDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CNonlinearEquationDlg)
enum { IDD = IDD_NONLINEAREQUATION_DIALOG };
double m_dblMethod1;
double m_dblMethod2;
double m_dblSteffensen1;
double m_dblSteffensen2;
double m_dblNewton;
int m_nMethod1;
int m_nMethod2;
int m_nSteffensen1;
int m_nSteffensen2;
int m_nNewton;
double m_dblEpsilon;
double m_dblX0;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNonlinearEquationDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNonlinearEquationDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonMethod1();
afx_msg void OnButtonMethod2();
afx_msg void OnButtonSteffensen1();
afx_msg void OnButtonSteffensen2();
afx_msg void OnButtonNewton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NONLINEAREQUATIONDLG_H__24A43A7C_7504_4954_84EC_01BE18660EE1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -