Question: TO BE CODED IN C++ You are to create your own version of a string class named myString. mvString will store a character string of

TO BE CODED IN C++

TO BE CODED IN C++ You are to create your own version

You are to create your own version of a string class named myString. mvString will store a character string of up to 25 characters (how will you handle more than 252) You will also need to supply the following methods as part of your class include a reference status variable" for errors size0 -how many characters are in the string? (empty string is size zero) addStart(myStringwll add the strin current string (cannot exceed 25) addEnd(mvString)-will add the string in the input parameter to the end of the current string (cannot exceed 25) partString(startPos, length)-returns string from startPos for length given (handle startPos size) replPartString(myString, startPos) - replaces charaters starting at startPos with input string - (what if exceeds 25?) replWholeString (myString) - replaces what is currently in string with input parameter string compareString(myString) - compare current value of string with input parameter string initString - resets/initializes string to null string setString(string) - assign string to myString data value getString0 - returns string of data from myString data value printString0 - prints myString data value to the monitor g in the input parameter to the front of You are to create your own version of a string class named myString. mvString will store a character string of up to 25 characters (how will you handle more than 252) You will also need to supply the following methods as part of your class include a reference status variable" for errors size0 -how many characters are in the string? (empty string is size zero) addStart(myStringwll add the strin current string (cannot exceed 25) addEnd(mvString)-will add the string in the input parameter to the end of the current string (cannot exceed 25) partString(startPos, length)-returns string from startPos for length given (handle startPos size) replPartString(myString, startPos) - replaces charaters starting at startPos with input string - (what if exceeds 25?) replWholeString (myString) - replaces what is currently in string with input parameter string compareString(myString) - compare current value of string with input parameter string initString - resets/initializes string to null string setString(string) - assign string to myString data value getString0 - returns string of data from myString data value printString0 - prints myString data value to the monitor g in the input parameter to the front of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!