#include <iostream>
#include <string>
#include <algorithm>

int main() {
	std::string str="ro.we.r";
	std::cout<<"before: str="<<str<<'\n';
	
	str.erase(remove(str.begin(), str.end(), '.'), str.end());
	
	std::cout<<"after: str="<<str<<'\n';
	return 0;
}