We can store these string literals inside a std::string type. The C++ Standard Library offers a compound type called string or rather std::string as it is part of the std namespace. We use it for storing and manipulating strings.
13. Introduction to Strings
Get Modern C++ for Absolute Beginners: A Friendly Introduction to the C++ Programming Language and C++11 to C++23 Standards now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.