c++实现装饰模式完整源代码 DecoratorPattern.hpp main.cpp DecoratorPattern.hpp #ifndef __DECORATOR_PATTERN_H__ #define __DECORATOR_PATTERN_H__ // 抽象构件 class Component { public: