changing the punctuation with other charachter

PHOTO EMBED

Tue Dec 14 2021 08:21:19 GMT+0000 (Coordinated Universal Time)

Saved by @abzal_nurgazy #c++

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