anyone please help me to do this problem......
using namespace std;
string s1, s2, result;
cout << "Enter string s1: ": getline (cin, s1);
cout << "Enter string 52: getline (cin, s2);
result = s1 + s2;
cout << "Resultant String = "<< result:
Please check your code.
There are various ways to concatenate strings.
Method 1: Using strcat() function.
Method 2: Using append() function.
Method 3: Using ‘+’ Operator
Great, it's working now:) . . Thanks for ur advice...
Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.
Follow us on:
Subscribe to get latest updates