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, 22.06.2019 15:00
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
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, 13.05.2021 05:10
question
Mathematics, 13.05.2021 05:10
question
Mathematics, 13.05.2021 05:10
question
Social Studies, 13.05.2021 05:10
question
Mathematics, 13.05.2021 05:10
question
Mathematics, 13.05.2021 05:10
question
Mathematics, 13.05.2021 05:10
question
Biology, 13.05.2021 05:10
Questions on the website: 13722363