所以,写我的第一个程序!任何有关上述错误的提示将不胜感激!:)
我得到不匹配的形式参数列表并且无法解决函数重载。
非常感谢,
#include <iostream>
#include <cmath>
#include "COMPFUN.H"
using namespace std;
int main()
{
double futureValue = 0.0;
double presentValue = 0.0;
double interestRate = 0.0;
cout << "Please enter Present Value: ";
cin >> presentValue;
cout << "Please enter rate: ";
cin >> interestRate;
futureValue = ( presentValue * 1 + interestRate / 1200.0 , 36) << endl;
cout << "Future value is: " << futureValue << endl;
system("pause");
return 0;
}