小编Jet*_*mmy的帖子

KSP DELTA V FINDER:为什么C++认为log()是一个函数?

我正在尝试为我的Kerbal Space Program游戏创建一个计算Delta-V的程序,而C++(在Eclipse IDE中运行)不允许使用log()而不假设我试图调用一个函数.非常感谢你的帮助!你真的很好

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    cout << "Hello. Welcome to the Kerbal Space Program Delta V Calculator. \n";
    cout << " \n";
    cout << "Note that each stage must use the same engine for this calculator.";
    cout << "\n";
    cout << "\nHow many stages make up your rocket? :";
    int stageNumber;
    cin >> stageNumber;
    //cout << "Your rocket has " << stageNumber << " stages.\n";
    cout << "\n\nStart from the bottom …
Run Code Online (Sandbox Code Playgroud)

c++ trigonometry logarithm

1
推荐指数
1
解决办法
183
查看次数

标签 统计

c++ ×1

logarithm ×1

trigonometry ×1