String Manipulation Functions (1)
String Manipulation Functions (1)
1. Concatenation
Example:
2. Substring
Example:
3. Find
Example:
str.insert(position, "substring");
Example:
5. Erase
str.erase(start, length);
Example:
6. Compare
7. Replace
Replaces a portion of the string with another substring.
Syntax:
Example:
8. Length
9. Empty
10. Swap