Hi, I need this in C++. I am a bit confused on using the string find() function.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Hi, I need this in C++. I am a bit confused on using the string find() function.

Post by answerhappygod »

Hi,
I need this in C++.
I am a bit confused on using the string find() function.
Hi I Need This In C I Am A Bit Confused On Using The String Find Function 1
Hi I Need This In C I Am A Bit Confused On Using The String Find Function 1 (99.69 KiB) Viewed 22 times
3.18 LAB: Phrases and subphrases Write a program that reads two phrases on separate lines and outputs one of the four responses: 1) Phrase one is found within phrase two 2) Phrase two is found within phrase one 3) Both phrases match 4) No matches Hint: Use the string function find(). Ex: If the input is: fire firetruck the output is: fire is found within firetruck Ex: If the input is: the green grass grows green grass 1:04 AM 7/10/2022 4
fire is found within firetruck Ex: If the input is: the green grass grows green grass the output is: green grass is found within the green grass grows Ex: If the input is: pick a card pick a card the output is: Both phrases match Ex: If the input is: apples oranges ■ 1:04 AM 7/10/2022
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply