Line 7 - decide how large you want the array to be and declare it accordingly. (how many characters will the string have, perhaps 50 or 100 might do to begin with).
line 21. First use strlen() to determine the sizes of s and x1.s. Add those together plus 1 for null terminator. That gives the required number of characters for the concatenated string. Then use new[] to allocate the memory: