home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
IDIOMS.ZIP
/
3-10.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-04
|
539b
|
26 lines
/* Copyright (c) 1992 by AT&T Bell Laboratories. */
/* Advanced C++ Programming Styles and Idioms */
/* James O. Coplien */
/* All rights reserved. */
#include <stdlib.h>
#include <string.h>
class String;
class StringRep {
friend String;
private:
StringRep();
StringRep(const StringRep& s);
~StringRep();
StringRep(const char *s);
String operator+(const String&) const;
int length() const;
void print() const;
private:
StringRep(char** const r);
char *rep;
int count;
};