For example, the strings "foo" and "bar" can be concatenated to yield the string "foobar".
In C, we'd do this with the standard C library function strcat(), which you are not using, or if we had objects that had type std::string, we'd concatenate them with the plus sign, like this:
1 2 3 4 5 6 7 8 9 10 11
#include <string>
usingnamespace std;
int main()
{
string a = "foo";
string b = "bar";
// concatenate a and b to yield "foobar", store the result in c.
string c = a + b;
}