Explore BrainMass

Explore BrainMass

    count ocurrences of a string in another string

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a function to count ocurrences of a string in another string. Then write a driver program to input a string and then input several lines of text, using the function to count occurrences of the string in the lines of text.

    **Note: I need the solution in C++ code.

    © BrainMass Inc. brainmass.com December 24, 2021, 5:26 pm ad1c9bdddf
    https://brainmass.com/computer-science/searching/count-ocurrences-of-a-string-in-another-string-47768

    Solution Summary

    Ideas to count ocurrences of a string in another string are noted.

    $2.49

    ADVERTISEMENT