how to assign a string to another string in cpp 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;
}