how to get the string in a string object in c++ code example Example: c++ string #include <string> std::string myString = "Hello, World!";