⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listiterator.h

📁 Data Abstraction & Problem Solving with C++源码
💻 H
字号:
// *********************************************************// Header file ListIterator.h.// Used in the iterator version of the ADT list.// *********************************************************#include "ListNode.h" // Definition of ListNode and                      // ListItemType; ListNode declares                       // ListIterator as a friend classclass ListIterator{public:   ListIterator(List *container, ListNode *nodePtr);   const ListItemType & operator*();   ListIterator operator++();    // prefix ++   bool operator==(const ListIterator& rhs) const;   bool operator!=(const ListIterator& rhs) const;      friend class List;private:   const List *container; // ADT associated with iterator   ListNode *cur;         // current location in collection}; // end class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -