String Exercise 2:

Write a program to practice how to use length(), find() and substr() functions. You should understand String Exercise 1 before you try this one.

Follow the steps below:

TIPS: Use the position and length of srch to complete the sub-string instructions in your program.

Copyright: Department of Computer Science, University of Regina.