list.h

来自「用于词法分析的词法分析器」· C头文件 代码 · 共 34 行

H
34
字号
/*  $Id: List.h,v 1.2 1997/02/02 01:31:03 matt Exp $  Generic Lists.    (c) Sep 17th 1994 Matt Phillips.  */#ifndef _LISTS_H#define _LISTS_H#include <iostream.h>#include "Container.h"#include "Data.h"///////////////////// Listtemplate <class T>class List : public Container<T>{  friend class ListIter<T>;     virtual const char *name () const {return "List";}  virtual void add (T &i) = 0;};template <class T> class ListIter : public ContainerIter<T>{};#endif

⌨️ 快捷键说明

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