Enhance the definition of the class StringVar given in display 11.11 and 11.12 b
ID: 3647852 • Letter: E
Question
Enhance the definition of the class StringVar given in display 11.11 and 11.12 by adding all of the following:- member function copy_piece, which returns a specified substring; member function one_chair, which returns a specified single character; and member function set_char, which changes a specified character.
- An overloaded version of the == operator (note that only the string values have to be equal; the values of max_length need not be the same)
- An overloaded version of that performs concatenation of strings of type StringVar
- An overloaded version of the extraction operator >> that reads one word (as opposed to input_line, which reads a whole line)
Explanation / Answer
which display 11.1???
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.