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
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week