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

📄 sciter.h

📁 数据结构c++语言描述 Borland C++实现
💻 H
字号:

// simulated chain iterator

#ifndef SimChainIterator_
#define SimChainIterator_

template<class T>
class SimChainIterator {
   public:
      T* Initialize(const SimChain<T>& c)
            {location = c.first;
             S = &c.S;
             if (location == -1) return 0;
             return &S->node[location].data;
             }
      T* Next()
            {if (location == -1) return 0;
             location = S->node[location].link;
             if (location == -1) return 0;
             return &S->node[location].data;
             }
   private:
      SimSpace<T> *S;  // pointer to simulated space for chain
      int location;    // node index in simulated space
};
 
#endif

⌨️ 快捷键说明

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