camort.cpp
来自「虚函数」· C++ 代码 · 共 11 行
CPP
11 行
#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 + =
减小字号Ctrl + -
显示快捷键?