24.7 STRINGS
class String
{ private: int len; string80 a ; public: String( string80 p); String(); void show(); friend ostream& operator<<(ostream & , String st) ; String operator + (String st2); };
String is an inseparable part of modern day programming. Newer compilers will have this as inbuilt class. Otherwise, the above definition is good enough.
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.