subject

C++: Given three strings on separate lines, insert the contents of the second string in the first string right before the third string. Then, output the result

Ex: If the input is:
FuzzyBear

Wuzzy

Be

the output is:
FuzzyWuzzyBear

Note: Using a pre-defined string function, the solution can be just one line of code.

(I tried using strVar. insert(partStr, str2) but was unsuccessful. I don’t know where I’m messing up. Thank you for your help. I’ve been trying to alter this code for a while now)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
To move an excel worksheet tab, simply right-click on it drag and drop it double-click on it delete it
Answers: 1
question
Computers and Technology, 24.06.2019 23:40
Which slide should you change so it reflects om all sides of your presentation
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
What phrase indicates someone has knowledge and understanding of computer,internet,mobile devices and related technologies?
Answers: 1
You know the right answer?
C++: Given three strings on separate lines, insert the contents of the second string in the first st...
Questions
question
Mathematics, 03.04.2021 06:30
question
Biology, 03.04.2021 06:30
question
Mathematics, 03.04.2021 06:30
question
Mathematics, 03.04.2021 06:30
question
Biology, 03.04.2021 06:30
Questions on the website: 13722367