📄 booster.h
字号:
#ifndef booster_
#define booster_
#include <iostream>
using namespace std;
struct booster
{
int degradeToLeaf, // degradation to leaf
degradeFromParent; // degradation from parent
bool boosterHere; // true iff booster here
void output(ostream& out) const
{out << boosterHere << ' ' << degradeToLeaf << ' '
<< degradeFromParent << ' ';}
};
// overload <<
ostream& operator<<(ostream& out, booster x)
{x.output(out); return out;}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -