string str;
cout << "Enter the string: " << endl;
getline(cin, str);
for (auto & ind : str)
{
if (ispunct(ind))
ind = ' ';
}
cout << str;
string str;
cout << "Enter the string: " << endl;
getline(cin, str);
for (auto & ind : str)
{
if (ispunct(ind))
ind = ' ';
}
cout << str;