/************************************************************************** print_find Function for Debugging CS113 Program Assignment 2 Date: Jan 24, 2000 Author: Stan Sclaroff Login: sclaroff@cs.bu.edu Description: This function is used in debugging. If offset = -1, then the string s does not contain t, and a message is printed to cout. Otherwise, the string s does contain t, and the first instance was found at offset. A message is printed to cout stating these facts. */ #include #include #include "funcs.h" void print_find(int offset,string s,string t) { cout << "The string \"" << s << "\""; if(offset == -1) cout << " does not contain \"" << t << "\"\n"; else cout << " first contains \"" << t << "\" at offset=" << offset << "\n"; return; } // end print_find