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 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
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
Chemistry, 29.11.2021 18:30
question
Mathematics, 29.11.2021 18:30
question
Mathematics, 29.11.2021 18:30
Questions on the website: 13722360