pow
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I'new at c++. I trying to write a program that calculates monthly payments. Formula is Payment= rate*(1+rate)n/((1+rate)n-1)*L rate= monthly interest rate n=number of payments L=amount of loan I get a c2660 error function does not take 1 parameters. I just can't seem to figure it out.
-
I'new at c++. I trying to write a program that calculates monthly payments. Formula is Payment= rate*(1+rate)n/((1+rate)n-1)*L rate= monthly interest rate n=number of payments L=amount of loan I get a c2660 error function does not take 1 parameters. I just can't seem to figure it out.
iasaber wrote: Payment= rate*(1+rate)n/((1+rate)n-1)*L Is this your code? If so, you're missing a couple asterisks:
Payment = rate*(1+rate)*n/((1+rate)*n-1)*L
- Mike