구조 #pragma once #include #include class IteratorInterface { public: virtual void first() = 0; virtual void next() = 0; virtual bool isDone() = 0; virtual int currentItem() = 0; }; class Aggregate { public: virtual IteratorInterface* createIterator() = 0; }; class Interator : public IteratorInterface { private: std::vector state; std::size_t index; public: Interator() { state = { 0, 1, 2 }; } voi..