indexable.h

来自「ALGAE是一个快速创建算法演示的框架。目前支持的算法实现语言包括java和c」· C头文件 代码 · 共 26 行

H
26 行
字号
#ifndef INDEXABLE_H#define INDEXABLE_H//// Indexable is an abstract class for things that have integer-addressed// components that another Visible item can point to.//class Visible;class Indexable {public:  virtual Visible* elementAt (int index) const = 0;  //pre: (none)  //  v = elementAt(index)  //post:  if index is in a valid range,  *v is the element at the   //            index'th position  //       if index is outside the valid range, v == null};#endif

⌨️ 快捷键说明

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