consider the following specification file that simulates the string class library "string.h":
//i named it aa.h
#include<iostream>
#include<cstring>
using namespace std;

const int SIZE=100;
class MyString
{
public:

MyString();
MyString(char arr[]);
MyString operator+(MyString oString);//concatenation
bool operator==(MyString oString);//are equal strings
int MyString::length() const;//returns the number of characters stored in the object.
int Find(char arr[]) const;// finds the position of the first occurence for the paseed string
MyString SubStr(int start, int length);//extarcts a substring from the current string

void Swap(MyString oString);//exchanges the values of the strings
private:
char text[SIZE];
};

i wrote the client code, the implementation file, no errors, and yet, the program faces a problem in executing it..here are my codes:
//implementation file:

#include "aa.h"


MyString::MyString()
{
for (int i=0;i<SIZE;i++)
text[i]=0;}

MyString::MyString(char arr[])
{
for(int i=0; i!='/0'; i++)
text[i]=arr[i];
}

MyString MyString:perator+(MyString oString)
{
MyString a;
strcpy(a.text,strcat(text,oString.text));

return a;

}
bool MyString:perator==(MyString oString)
{
for(int i=0;i!='/0';i++)
if(oString.text[i]==text[i])
return true;
else
return false;
}
int MyString::length() const
{
int a=strlen(text);
return a;
}

int MyString::Find(char arr[]) const
{
int o=0;
int i=0;
while(arr[i]!='/0'){
for( ; arr[i]!=text[i];i++)
o++;
if(arr[i]==text[i])
i++;
else
{o=0;
break;}
}

return o;
}

MyString MyString::SubStr(int start, int length)
{
MyString a;
int j=0;
for(int i=start;i<=length; i++)
a.text[j]=text[i];
cout<<"the substring is: "<<a.text<<endl;
text[start]=text[length+1-length];
text[start+1]='/0';
return a;


}


void MyString::Swap(MyString oString)
{
MyString t;
for(int i=0;i!='/0';i++)
{t.text[i]=text[i];
text[i]=oString.text[i];
oString.text[i]=t.text[i];

}}

//client code:

# include "aa.h"
int main()
{

cout<<"enter your string"<<endl;
char a[100];
cin.get(a,100);
MyString x=MyString();
MyString y=MyString(a);

x.operator+(y);
if(x.operator==(y))
cout<<"they are equal"<<endl;
else
cout<<"not equal"<<endl;

cout<<"the length of string= "<<x.length()<<endl;
cout<<"the position of the first occurence= "<<x.Find(a)<<endl;
cout<<"enter your start and length"<<endl;
int start, lengthh;
cin>>start>>lengthh;
x.SubStr(start,lengthh);
x.Swap(y);
return 0;
}