i was wondering how to replace a word in a line.
i search in google.com and thescipts.com, i hardly to find what i want.
for example this line,
"I like his daughter"
replace his with "her".
first, i find the substring "him" in the line.
and then replae it with "her" at that position(string address), to let it become,
"I like her daughter"
how am i do that in C language ?
any idea?
i dont give the code here cos what i want is just the code of replacing the word baisically, that i dont know what to code.
-----------
thanks.
i search in google.com and thescipts.com, i hardly to find what i want.
for example this line,
"I like his daughter"
replace his with "her".
first, i find the substring "him" in the line.
and then replae it with "her" at that position(string address), to let it become,
"I like her daughter"
how am i do that in C language ?
any idea?
i dont give the code here cos what i want is just the code of replacing the word baisically, that i dont know what to code.
-----------
thanks.
Comment