📄 mortcalcdoc.h
字号:
// MortCalcDoc.h : interface of the CMortCalcDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MORTCALCDOC_H__0109A0DF_1969_11D1_97B2_000000000000__INCLUDED_)
#define AFX_MORTCALCDOC_H__0109A0DF_1969_11D1_97B2_000000000000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CMortCalcDoc : public CDocument
{
protected: // create from serialization only
CMortCalcDoc();
DECLARE_DYNCREATE(CMortCalcDoc)
// Attributes
public:
// Operations
public:
void SetLoanData(float amount, float rate, int years);
void Compute();
void GetLoanData(float *P, float *R, int *Y, float *M);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMortCalcDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMortCalcDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
float flLoan;
float flRate;
int iNumofPayments;
float flMonthlyPayment;
// Generated message map functions
protected:
//{{AFX_MSG(CMortCalcDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Generated OLE dispatch map functions
//{{AFX_DISPATCH(CMortCalcDoc)
afx_msg float GetPrincipal();
afx_msg float GetRate();
afx_msg long GetPeriod();
afx_msg float GetPayment();
afx_msg void Reset();
afx_msg void SetLoanInfo(float Principal, float Rate, long Period);
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
DECLARE_INTERFACE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MORTCALCDOC_H__0109A0DF_1969_11D1_97B2_000000000000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -