I'm trying to concatenate 2 strings. One of the string is defined whereas the other string's length is not fixed. Whenever I input the second string as suppose 'to my world', it does not print the entire string on concatenation. I'm new to programming, so please help me out.
#include <iostream>
using namespace std;
int main() {
string s = "Welcome";
string t="",k;
cin>>t;
k=s+t;
cout<<k;
return 0; }