0
How can i erase a character from a string & replace that with a new character?
Suppose, i have to take a string as an input from user & he type "specialised". I want the output as sp#ci@lis#d. How can i do this?
2 ответов
+ 3
Put it in a loop and search for that specific character and replace with new character. Built in functions can differ according to which language you are using
0
If you are familiar with regex,
http://www.cplusplus.com/reference/regex/regex_replace/