




#ifndef MYSTRING_H
#define MYSTRING_H



using namespace std;

class MyString

{
      private:  
              int length;
              char array[81];
            
        
              
      public:
             MyString();
             MyString(const char* );
             bool operator== (const MyString&)const;
             bool operator== (const char*)const;
             char operator[]  (int) const;
             char& operator[] (int);
             const char* c_str() const;
             bool empty() const;
             int size() const;
             void clear();
             friend ostream& operator<<(ostream&, const MyString&); 
             friend istream& operator>>(istream&, MyString&);
             friend bool operator==(const char*, const MyString&);
};


#endif             
