Does this make any sense?
char is a slightly misleading variable name, maybe insert a print statement so you can see?
char contains words from texts list
so replacing it by a single asterisks is no good.
replace() is dull, it allows for a single line solution
I would advise against using
If you really want to use replace, make sure to do something with the result replace returns
alright sir =) surprisingly your reply is really fast and helpful , thanks sir!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.