形式参数表不匹配:无法解决函数过载
mismatch in formal parameter list: unable to resolve function overload
写我的第一个程序!任何关于上述错误的提示将不胜感激!!:)
我得到不匹配的形式参数列表,无法解决函数过载。
many many thanks,
#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;
}
你期望什么
futureValue = ( presentValue * 1 + interestRate / 1200.0 , 36) << endl;
endl
在这行末尾做什么?你想把结果移动endl
位吗?您是否希望n
附加到futureValue
并在之后冲洗它?
相关文章:
- 移动赋值运算符;尝试引用已删除的函数.我该如何解决这个问题?
- 解决模板成员函数重载
- 如何巧妙地编写两个函数——一个用于检查是否存在解决方案,另一个用于获取所有解决方案
- "Missing type specifier - int assumed"无法通过向主函数添加"return 0"来解决
- 如何解决类成员函数中的"return a value"错误?
- Visual Studio 无法解决类和命名空间中重载的明确函数
- CLion - 无法解决类中对构造函数的未定义引用
- 我在解决此错误时遇到问题.我正在努力在主函数中传递数组
- 如何通过签名作为模板参数来解决重载函数?
- 我是否需要在虚拟继承类的构造函数中初始化基类以解决菱形继承问题?
- 不为 emplace() 定义构造函数的解决方法
- 删除复制构造函数的 Intel 13.1.2 中不良C++行为的解决方法
- 函数模板部分专业化-有什么解决方法吗
- 如何解决传递给boost线程的函数中的歧义
- 解决由于在哈希函数中使用了不完整的类型而导致的编译失败
- C++类是否解决函数覆盖问题
- 形式参数表不匹配:无法解决函数过载
- 这是解决函数调用歧义的正确方法吗?
- c++0x:解决函数定义后接空声明和简单声明之间的歧义
- 解决函数模板部分专用化问题