Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this week's lesson, we made use of the find command to find a search character or characters of one string in another source string.

image text in transcribed

In this week's lesson, we made use of the find command to find a search character or characters of one string in another source string. For example: string name = "John Smith"; int sindex = name.find ( " S ") But what if the search string is not there. For example: string name = "John Smith"; int sindex = name.find ("Z " ); In the first case, I want to output that the character / string was found at the index where it was found. In the second case, I want to output the character string was not found. You may need to use a branching command (If / else) that we did not cover yet

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What does this public expect from your organization?

Answered: 1 week ago

Question

5. What information would the team members need?

Answered: 1 week ago

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago