Question: Please fix my code in the picture: In C + + Member function copy _ piece, which returns a specified substring. The function has the
Please fix my code in the picture: In C Member function copypiece, which returns a specified substring. The function has the location as input and number of characters to read. Function call can read:
copypiece&text;
My code: StringVar StringVar::copypieceint position, int length
if position length position
cout "You are not able to do that, exiting now...";
exit;
StringVar result;
return result;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
