CPSC250A Assignment 101 - String Searching

Due Friday September 23

The String class that we created in class can create, print, and concatenate, but not much else. To make it more useful add a substring searching method to it.

Details

The file index_of.cc contains a program that allows the user to test the IndexOf method in the String class. For this assignment write the IndexOf function. The function should search for the specified substring after the specified index. If it finds the substring, it should return the index of the first character of the first occurance of the substring. If it can not find the substring, it should return -1. Your code does not have to do bounds checking on the beginning index.

Submission

Tar your code in a file that contains your name and submit it on course Inquire site.