home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 04 / list.h < prev    next >
C/C++ Source or Header  |  1991-11-14  |  496b  |  33 lines

  1. // list.h RHS 8/2/91
  2.  
  3. #if !defined(LIST_H)
  4. #define LIST_H
  5.  
  6. typedef struct _node
  7.     {
  8.     struct _node *next;
  9.     void    *object;
  10.     } NODE;
  11.  
  12. class List
  13.     {
  14.     NODE *start, *end;
  15.     int NumElements;
  16.     NODE *current;
  17.     int lastndx;
  18.     NODE *lastnode;
  19.  
  20. public:
  21.     List(void);
  22.     ~List(void);
  23.     int Add(void *object);
  24.     void *Current(void);
  25.     int Num(void);
  26.     void *operator[](int index);
  27.     void List::Dump(int index);
  28.     };
  29.  
  30. #endif
  31.  
  32.         
  33.