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 03:00
Check my work the microprocessor is a(n) circuit, which is designed to process data based on a set of instructions. most desktop and laptop devices contain a microprocessor based on the standard. most tablets and smartphones contain processors based on technology. a microprocessor's circuitry is designed to perform a limited number of tasks contained in its set. during processing, an instruction is loaded into the processor's unit. data is loaded into registers in the processor's where arithmetic and logic operations are performed. microprocessor performance can be measured by its speed. other factors affecting overall processing performance include word size, cache size, and instruction set complexity. most digital devices contain only one microprocessor chip, but today's multi- processors contain circuitry that supports parallel processing. computers contain various kinds of memory. random memory is a special holding area for data, program instructions, and the system. it stores data on a temporary basis until the processor makes a data request. ram is different from disk storage because it is , which means that it can hold data only when the computer power is turned on. computers also contain read- memory, which is a type of non-volatile memory that provides a set of "hard-wired" instructions, called the loader, that a computer uses to boot up.
Answers: 3
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 24.06.2019 06:30
Some peer-to-peer networks have a server and some don't. true false
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
Mathematics, 05.05.2020 06:53
question
Physics, 05.05.2020 06:53
Questions on the website: 13722363