home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_07_07 / v7n7023a.txt < prev    next >
Text File  |  1989-09-04  |  336b  |  15 lines

  1.  
  2.     1    #include <stream.h>
  3.     2    
  4.     3    class Array {    // array of integers
  5.     4    public:
  6.     5        Array(int size);
  7.     6        int & value(int index);
  8.     7        int & operator[ ] (int index);
  9.     8    friend ostream & operator<< (ostream &os, Array v);
  10.     9    private:
  11.    10        int *array;
  12.    11        int arraysize;
  13.    12    };
  14.  
  15.