home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_11 / 8n11088b < prev    next >
Text File  |  1990-09-18  |  235b  |  16 lines

  1.  
  2.     class It {
  3.     public:
  4.         It( List &l)    { current = head;}
  5.         Truth isend()    { return (current == 0); }
  6.         T get()
  7.         { 
  8.             T r = current->value();
  9.             current = current->next();
  10.             return r;
  11.         }
  12.     private:
  13.         Node *current;
  14.     };
  15.  
  16.