Zebra0.com

cpp stringsThe substr method with drill

The substr method with drill

substr

The substr method has either 1 or 2 arguments.
The first argument is the starting pos (counting from 0), the second is the number of characters.

If the second parameter is missing, it takes from the start pos to the end of the string

Ready?

Ready?

NEXT: String: length() method with drill