home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_07 / 1107118a < prev    next >
Text File  |  1993-05-06  |  327b  |  24 lines

  1. //
  2. // list.h - list interface using global classes
  3. //
  4.  
  5. struct listnode
  6.     {
  7.     listnode(unsigned n, listnode *p)
  8.         : number(n), next(p) { }
  9.     unsigned number;
  10.     listnode *next;
  11.     };
  12.  
  13. class list
  14.     {
  15. public:
  16.     list(unsigned n);
  17.     ~list();
  18.     void add(unsigned n);
  19.     void print();
  20. private:
  21.     listnode *first, *last;
  22.     };
  23.  
  24.