xx.cpp
来自「financal instrument pricing using c」· C++ 代码 · 共 25 行
CPP
25 行
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 + =
减小字号Ctrl + -
显示快捷键?