:'( given 2 strings of characters, how can you test whether the first string appears as a substring somewhere in the second, what are you supposed to do here?
keno
Nov 26 2003, 04:03 PM
You could use IndexOf
string1 = ob string2 = bob
CODE
int ImFound = string2.IndexOf(string1);
ImFound would return -1 if it wasn't found, or the index value if it was
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.