HW5: String
- Use the find() function to design an occurrence function, which will
count the number of occurrences of a string in a text.
- int occurrence(string text, string str);
- Try to use a long text to test your function.
- Modify your function so that it is case-insensitive (i.e., both
"ABC"
and "aBc" matches "abc").
- Be sure to submit a CPP source file instead of a compressed file.