#include "String.h" #include "Array.h" #pragma once class Text: public Array { public: void Print(){ printf("text length=%ld\n", length); for (long i=0; igetCharArray()); // elements[i]->println(); } } bool hasMatch(const String& s){ for (long i=0; igetCharArray()); return true; } } //printf("no matches for [%s]\n", s.getCharArray()); return false; } };