?? booster.h
字號:
#ifndef Booster_#define Booster_template <class T> class BinaryTreeNode;class Booster { friend void main(void); friend void PlaceBoosters(BinaryTreeNode<Booster> *); public: void Output(ostream& out) const {out << boost << ' ' << D << ' ' << d << ' ';}// private: g++ has a problem when main is a friend int D, // degradation to leaf d; // degradation from parent bool boost; // true iff booster here};// overload <<ostream& operator<<(ostream& out, Booster x) {x.Output(out); return out;}#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -