{input};//keep a copy since original string will be changed shortlystd::map<std::string,std::string> replacements{};//std::unordered::map would make changes path-dependentinti{};while(i < changes) { std::cout <<"Enter a character or phrase to be replaced: \n"; std::string ...