The string class in C++ is used to store string values. Before a string can be declared, the string header must be included. The standard namespace can also be included since the string class is part of that namespace.
Strings can then be declared like any other data type. To assign a string value to a string variable, delimit the literals by double quotes and assign them to the variable. The initial value can also be assigned through constructor initialization at the same time as the string is declared.