本文整理汇总了C++中Executer::topIntAsDbl方法的典型用法代码示例。如果您正苦于以下问题:C++ Executer::topIntAsDbl方法的具体用法?C++ Executer::topIntAsDbl怎么用?C++ Executer::topIntAsDbl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Executer
的用法示例。
在下文中一共展示了Executer::topIntAsDbl方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: executeMultiplyIntDbl
void executeMultiplyIntDbl(Executer &executer)
{
auto rhs = executer.topDbl();
executer.pop();
auto lhs = executer.topIntAsDbl();
multiplyAndCheckResult(executer, lhs, rhs);
}
示例2: executeExponentialIntDbl
void executeExponentialIntDbl(Executer &executer)
{
auto y = executer.topDbl();
executer.pop();
auto x = executer.topIntAsDbl();
calculatePowerDblDbl(executer, x, y);
}
示例3: executeCvtDbl
void executeCvtDbl(Executer &executer)
{
executer.setTop(executer.topIntAsDbl());
}
示例4: executeSubtractDblInt
void executeSubtractDblInt(Executer &executer)
{
auto rhs = executer.topIntAsDbl();
executer.pop();
executer.setTop(executer.topDbl() - rhs);
}
示例5: executeAddDblInt
void executeAddDblInt(Executer &executer)
{
auto rhs = executer.topIntAsDbl();
executer.pop();
executer.setTop(executer.topDbl() + rhs);
}
示例6: executeModuloIntDbl
void executeModuloIntDbl(Executer &executer)
{
auto rhs = popDoubleDivisor(executer);
auto lhs = executer.topIntAsDbl();
executer.setTop(std::fmod(lhs, rhs));
}
示例7: executeDivideIntDbl
void executeDivideIntDbl(Executer &executer)
{
auto rhs = popDoubleDivisor(executer);
auto lhs = executer.topIntAsDbl();
divideAndCheckResult(executer, lhs, rhs);
}
示例8: executeMultiplyDblInt
void executeMultiplyDblInt(Executer &executer)
{
auto rhs = executer.topIntAsDbl();
doDoubleMultiply(executer, rhs);
}