#include int main() { const std::string exclam = \"!\"; const std::string message = \"Hello\" + \", world\" + exclam; std::cout <&l
"Hello" + ", world"
Since these are c-style strings, you cannot append them with +. You can append a std::string to a c-style string, but not 2 c-style strings this way, instead add a std::string() constructor around one of them to make a temporary, ie:
"Hello" + std::string(", world")