Finish Given C Code Implements Mystring Class Wrapper Char Array Supports Operators Descri Q37105298

Finish the given c++ code, which implements myString class (awrapper for a char array) that supports +, –, and * operators. Itsdescriptions and requirements:

a. some methods are already defined in myString class, forinstance, its getters, constructors, and destructor.

b. private member variables are declared, it is ok if you wantto declare more. Variable str is a char array that is used to storea string. Variable len is used to indicate the length of thestring.

c. one method called countString is implemented. It is used tocount the number of times substring (indicated by parameter other)appears in the given string (indicated by parameter s).

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.