CPP
36
stdstuff.h
Guest on 5th August 2022 01:32:49 AM
// 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 BORLAND 5.0 environment.
#include <iostream.h>
#include <fstream.h>
#include <strstrea.h>
#include <iomanip.h>
#include <stdexcep.h>
#include <limits.h>
#include <string>
#include <math.h>
#include <process.h>
#include <ctype.h>
#include <conio.h>
using namespace std;
#define clearScreen() clrscr()
inline static void pause () {
cout << "Hit any key to continue...\n";
getch();
}
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