subject

I am in a C programming class and I am having trouble with my code for one of the questions as I am unsure on how to write it. The question is: Write a subroutine that takes four strings pointers as parameters: pstrDestination, pstrSource, pstrToFind, pstrReplaceWith. The subroutine should copy the source string into the destination string (and terminate) but it should replace all instances of pstrToFind with pstrReplaceWith. Assume the destination string is large enough to hold the source. For example source="I love Star Trek and I love Star Wars", find=”love”, replace “really love”, would be copied as “I really love Star Trek and I really love Star Wars”.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following “invisible” marks represents an inserted tab?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 25.06.2019 08:50
98 points asap you have been asked to create a program for an online store that sells their items in bundles of five. select the appropriate code that would display how many bundles are available for sale. a.print(5 // totalitems) b.print(totalitems // 5) c.print(totalitems(5) ) d.print(5(totalitems) )
Answers: 2
question
Computers and Technology, 25.06.2019 15:00
What is the first step in necessary to begin setting up a website once a host has been selected and paid
Answers: 1
You know the right answer?
I am in a C programming class and I am having trouble with my code for one of the questions as I am...
Questions
question
Mathematics, 07.12.2020 22:40
question
Mathematics, 07.12.2020 22:40
question
Mathematics, 07.12.2020 22:40
question
Mathematics, 07.12.2020 22:40