string
The std::string class from <string>. A mutable, dynamic sequence of characters with rich member functions.
Syntax
cpp
std::string s = "text";
s.length(); s.substr(pos, len);Example
cpp
#include <string>
string s = "Hello";
s += ", World!"; // concatenation
cout << s.length(); // 13
cout << s.substr(7, 5); // World
cout << s.find("World"); // 7