// we only want this stuff if stdstuff has not previously been included // (i.e. if "stdstuff_included" has not been defined) #ifndef stdstuff_included #define stdstuff_included // Standard include file for DEV-C++ environment. #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define clearScreen() system("cls") inline static int pause () { system("pause"); return 0; } class String2002 : public string { public: String2002():string() {} // These are needed for operator=, + String2002(int i, char c):string(i,c) {} // constructor String2002(const char c):string(1,c) {} // constructor String2002(char bb[]):string(bb) {} // These are needed for operator=, + String2002(char bb[], int start, int slength):string(bb, start, slength) {} String2002(const string &rhs):string(rhs) {} // Copy Constructor needed by operator+ bool isEqualCaseInsensitive(const String2002 &otherString) const { string s1 = (string) *this; string s2 = (string) otherString; return (stricmp(s1.c_str(), s2.c_str())==0); } }; #endif