home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_09 / 1109100a < prev    next >
Text File  |  1993-07-18  |  191b  |  14 lines

  1. class string
  2.     {
  3. public:
  4.     string(const string &);
  5.     // ...
  6.     operator const char *() { return str; }
  7.     size_t length() { return len; }
  8.     // ...
  9. private:
  10.     char *str;
  11.     size_t len;
  12.     };
  13.  
  14.