📄 camort.cpp
字号:
#include "CAmort.h"
CAmort::CAmort(double a,int b,double c) : CGeneric(a,b,c) {}
double CAmort::getMonthlyPayment() const
{
double monthlyRate = rate/12;
int lengthInMonths = length*12;
double power = pow(1 + monthlyRate,lengthInMonths);
return (principal*monthlyRate*power)/(power - 1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -