C++ String erase()This function removes the characters as specified, reducing its length by one. SyntaxConsider a string str. Syntax would be: Parameter
Return valueIt returns *this. Example 1Let's see a simple example when pos and len are given: Output: This is java tutorial Example 2Let's see a simple example when iterator is passed in a parameter: Output: java programing Example 3Let's see a simple example when the range is mentioned in a parameter: Output: This is an example of C Next TopicC++ Strings |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India