I have an assignment where I have to replace every mention of one word with the second word in a given text.
Mary had a little lamb
input: "Mary Alice"
Alice had a little lamb
I'm pretty sure that strcpy can help me do that, but I am not sure how to do that without replacing the entire text itself. Any help is really appreciated!
Help with an assignment. Project due soon.
Post a Reply
|Oldest Newest Rating|
· November 23, 2015
You can use the following blog to achieve what you need
Since this is an assignment, I would suggest you go through the program and understand the basic mechanism the OP has used to solve the given problem. Then use the knowledge to write a programming mechanism of your own so that it would fit your custom need.
One of the most popular languages of all time.
|Bucky Roberts Administrator|