given a string literal in c++ i have to remove toxic words like stupid etc by ###.
Suppose i have my toxic words in an array like
char[][]={"...",".."...and more...}
and my string is like
char str[]="......."
any particular library func that could help me here.
thanks in advance for help
boost string algorithms
Example:
Download boost from here
Documentation of this particular library is here (page 5 is about replace algorithms)