// we only want this stuff if stdstuff has not previously been included // (i.e. if "stdstuff_included" has not been defined) #if ! defined stdstuff_included #define stdstuff_included // Standard include file for Linux. #include #include #include #include #include #include #include #include #if defined ( linux ) #include #include #include #include #else #include #include #include #endif using namespace std; #if defined ( linux ) #define pause() #define stricmp strcasecmp #define clearScreen () system("clear") #else #define clearScreen() system("cls") inline static int pause () { system("pause"); return 0; } #endif 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); } }; inline static int quit(const String2002 &str) { cout << str << endl; pause(); abort(); } #endif