Lakhimpur Kendriya Mahavidyalaya
CSCI MISC
/ TODO #1: Implement erase() for String Objects // When erase() is called using two parameters, "pos" and "len", this function erases the portion of the // String object that begins at index "pos" that spans "len" characters (or until the end of the String, // whichever comes first). If "len" is not defined, the String is erase
...[Show More]
/ TODO #1: Implement erase() for String Objects // When erase() is called using two parameters, "pos" and "len", this function erases the portion of the // String object that begins at index "pos" that spans "len" characters (or until the end of the String, // whichever comes first). If "len" is not defined, the String is erased from "pos" to the end of the String. // A reference to the modified String object is returned. // // You may assume that the starting position "pos" will be valid, and "len" will be >= 0. // // HINTS: Start with two pointers or indices, one that begins at the position to begin erasing, and one that
[Show Less]
Access Full Document
Instant download after payment
Card Payments
₿
Crypto Accepted