Topical Information

This lab will help you practice with file processing and string processing.

Program Information

Take the contact searching program developed in lecture and its associated data file as a starting point.

Enhance this code to not use == to test for a match but rather do a case-insensitive substring match instead. (Tip: This will be like that other lab mixed with string::find.)

Thought Provoking Questions

  1. What arguments does your matching function take? Are they changed? What special care should you take with them?

  2. What value is returned by your function? What type is it and what does it represent?

  3. What care does a caller of your function have to take with this return value? (i.e. Can they immediately assume it is a valid index?)?

This assignment is (Level 2.5).

Options