구조 #pragma once #include #include #include class Strategy { public: virtual int algorithmInterface(int a, int b) = 0; }; class Context { private: Strategy* strategy_; public: Context(Strategy* strategy) { strategy_ = strategy; } void changeStrategy(Strategy* strategy) { strategy_ = strategy; } void contextInterface() { std::cout algorithmInterface(5, 5) contextInterface(); context->changeStrateg..