watermelon.h
来自「C++高级编程这本书所附的源代码」· C头文件 代码 · 共 23 行
H
23 行
/**
* Implements the basic functionality of a watermelon.
*
* TODO: Implement updated algorithms!
*/
class Watermelon
{
public:
/**
* @param initialSeeds The starting number of seeds
*/
Watermelon(int initialSeeds);
/**
* Computes the seed ratio, using the Marigold
* algorithm.
*
* @param slowCalc Whether or not to use long (slow) calculations
* @return The marigold ratio
*/
double calcSeedRatio(bool slowCalc);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?