assigning one string to another in c++ code example
Example: append string to another string c++
// appending to string
#include <iostream>
#include <string>
int main ()
{
// easy way
std::string str = "Hello";
std::string str2 = " World";
std::cout << str + str2 << std::endl;
return 0;
}