home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progc / fixed300.arj / BUG168.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-14  |  544 b   |  42 lines

  1. #if 0
  2. From: Wilkin
  3. Subject: ZTC internal error: 35144
  4. Status: Fixed in 3.0
  5. #endif
  6.  
  7.  
  8. #include <string.h>
  9. #include <stream.hpp>
  10.  
  11. struct srep
  12. {
  13.   char *s;
  14.   int n;
  15. };
  16.  
  17. class String
  18. {
  19.     srep *p;
  20. public:
  21.     String();
  22.     String(char);
  23.     String(char,int);
  24.     String(const char *);
  25.     String(const String &);
  26.  
  27.     String strupr();
  28.     
  29.     ~String();
  30. };
  31.  
  32. String curdir(char drive)
  33. {
  34.     // ZTC internal error: 35144
  35.     String result = "";
  36.     return result.strupr();
  37.  
  38.     // Works!
  39.     //    String result = result.strupr();
  40.     // return result;
  41. };
  42.