string z,s;
while (true)
{
cin>>z;
s+=z;
if(cin.peek()=='
')
break;
}
................................
OR/
.................................
string s;
getline(cin,s);
cin>>n;
cin.ignore();
cin.getline(cin,string,'
');
getline(cin, variable_name);