我正在尝试为我的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)