#ifndef __STRING_H #define __STRING_H #include class String { private: char *s; // Will point to the string; no null character to terminate // string. int len; // Length of string. public: String(void) : s(NULL), len(0) {} // Constructor for building an // empty string. String(char in[]); ~String(); int StrLen(void); void StrZero(void); void StrPrt(void); void StrCpy(const String& src); // References used to avoid writing // a copy constructor (lazy me). void StrCat(const String& src); int StrChr(char c); int StrCmp(const String& cmp); int StrStr(const String& little); }; #endif