#include <iostream>
#include <string>
using namespace std;
signed main()
{
setlocale(LC_ALL,"Rus");
string s1,s2;
cout << "Строка 1: ";
getline(cin,s1);
cout << "Строка 2: ";
getline(cin,s2);
s2 = s2 + s1;
cout << "Измененная строка 2: " << s2;
return 0;
}
#include <iostream>
#include <string>
using namespace std;
signed main()
{
setlocale(LC_ALL,"Rus");
string s1,s2;
cout << "Строка 1: ";
getline(cin,s1);
cout << "Строка 2: ";
getline(cin,s2);
s2 = s2 + s1;
cout << "Измененная строка 2: " << s2;
return 0;
}