[Solved] One Show Code C Statement Q37214486
Does any one can show me the code in C++ below the statement?
ll cricket LTE 80% 16:58 Back P2.B MYString v1 Detail Submission Grade For this program, your MYString variables will never need to grow beyond length 20, in program 3 you will need to be allow your string that is held in the class to be able to be larger than 20 chars. So you may want to start allowing your strings to be able to grow….if you have extra time. If you are optionally building in the ability to grow, it should start witha capacity of 20, but when needed it would grow in increments of 20. The capacity should always be a multiple of 20 For example if we were storing the string “cat” in a MYString object, our data member would have the following values starting addr of dynamic array str cap 20 end3 Dynamic array at o 2222 P 222 2PP22? са 11:48 @ 88% | “ill cricket令 Back P2.B MYString v1 Program Detail Submission Grade Member Functions Description return type Default Constructor: creates an empty string creates a string that contains the information from the MYString MYString (const argumernt char*) example: MYString greeting( hello there wise one”; the length of the string (“cat” would return 3) the total amount of memory available for use (always 20 in this version, but in the next length): int capacity(): int ersion, this will change) returns the character at a certain location (at( 0) fora at( int index) char “cat” would return ‘c). If the index is not inside the string (negative or too large) then return 10 Show transcribed image text ll cricket LTE 80% 16:58 Back P2.B MYString v1 Detail Submission Grade For this program, your MYString variables will never need to grow beyond length 20, in program 3 you will need to be allow your string that is held in the class to be able to be larger than 20 chars. So you may want to start allowing your strings to be able to grow….if you have extra time. If you are optionally building in the ability to grow, it should start witha capacity of 20, but when needed it would grow in increments of 20. The capacity should always be a multiple of 20 For example if we were storing the string “cat” in a MYString object, our data member would have the following values starting addr of dynamic array str cap 20 end3 Dynamic array at o 2222 P 222 2PP22? са
11:48 @ 88% | “ill cricket令 Back P2.B MYString v1 Program Detail Submission Grade Member Functions Description return type Default Constructor: creates an empty string creates a string that contains the information from the MYString MYString (const argumernt char*) example: MYString greeting( hello there wise one”; the length of the string (“cat” would return 3) the total amount of memory available for use (always 20 in this version, but in the next length): int capacity(): int ersion, this will change) returns the character at a certain location (at( 0) fora at( int index) char “cat” would return ‘c). If the index is not inside the string (negative or too large) then return 10
Expert Answer
Answer to Does any one can show me the code in C++ below the statement?… . . .
OR

