home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_07 / 9n07117a < prev    next >
Text File  |  1991-05-22  |  349b  |  25 lines

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