#ifndef MString_H #define MString_H #include "stdio.h" #include "ctype.h" #include #include using namespace std; //erase(x) : löscht alle vorkommen von x aus dem Wort //concat(x) : fügt dem wort x hinten an //replace(x,y) : ersetzt alle x im wort durch y //equal(x) : liefert eins wenn das wort mit x übereinstimmt, null sonst //includes(x) : liefert eins wenn x im wort vorkommt class MString { private: int bedpos; char str[8000]; string stt; public: bool found; public: MString(); ~MString(); void set(char *s); void operator=(char *s){set(s);} void operator=(MString M){stt=M.stt;found=M.found;bedpos=M.bedpos;} void operator=(int x); void operator=(string s){stt=s;} char *print(){ if (stt.length()>=8000) printf("STRINGERROR>8000"); for (int i=0;((i<=stt.length())&&(i<8000));i++) str[i]=stt[i]; return(str); } string getstring() {string x;x=stt;return(x);} char stringval(int i) {if (i