所以,编写我的第一个程序!如有任何关于上述错误的提示,我们将不胜感激!!:)
我得到了不匹配的形参列表,无法解决函数重载问题。
非常感谢,
#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;
}发布于 2013-05-24 07:06:08
你想要什么
futureValue = ( presentValue * 1 + interestRate / 1200.0 , 36) << endl;在这行的末尾要做endl吗?是否要将结果按endl位移位?是否要将\n附加到futureValue并在之后将其刷新?
https://stackoverflow.com/questions/16725299
复制相似问题