I have the following variables
std::string stringA = "Hello";
std::string stringB = "world";
When I subsequently do
std::cout << stringC;
I want the resulting output to be Helloworld. How can I create the necessary stringC from stringA and stringB?
>Solution :
std::string stringC = stringA + stringB;
See documentation for this operator.