#include <iostream>
#include<Cmath>
using namespace std;
int main()
{
double principal;//原始本金
double rate;//利率,
int payPerYear;//每年还贷次数,
int numYears;//贷款年限;
double Payment;//还款金额;
cout<<"输入本金 每年偿贷次数 贷款年限";
int number,e,b,denom,pow;
number=rate*principal/payPerYear;
e=-(payPerYear*numYears);
b=(rate/payPerYear)+1;
denom=1-pow(b,e);
Payment=number/denom;
cout<<"Payment is"<<Payment;
return 0;
}
错误:d:\text.cpp(16) : error C2064: term does not evaluate to a function