home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_09
/
1109101a
< prev
next >
Wrap
Text File
|
1993-07-18
|
281b
|
24 lines
class string
{
public:
string(const string &);
// ...
operator const char *();
size_t length();
// ...
private:
char *str;
size_t len;
};
inline string::operator const char *()
{
return str;
}
inline size_t string::length()
{
return len;
}