Write the definition of a function named copy that reads all the strings remaining to be read in standard input and displays them, one on a line with no other spacing, onto standard output .
void copy()
{
string x;
if(cin >> x)
{
if(cin != '\n')
{
copy()
}
return (x +1);
}
cout << x <<endl;
}