📄 xx.cpp
字号:
class ShapeComposite: public Shape
{ // N.B. Stripped down version
private:
// The shapelist using the STL list
std::list<Shape*> sl;
public:
// User can use the STL iterator
typedef std::list<Shape*>::iterator iterator;
typedef std::list<Shape*>::const_iterator const_iterator;
// Iterator functions
iterator Begin(); // Return iterator at begin of composite
const_iterator Begin() const; // Return const iterator at begin of composite
iterator End(); // Return iterator after end of composite
const_iterator End() const; // Return const iterator after end of composite
// Remove functions
void RemoveAll(); // Remove all shapes from the list
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -