Platinum Partner

C++ String Count Substring

// description of your code here


unsigned int str_count(const string &text ,const string &str)
{
        unsigned int count=0;
        string::size_type pos=text.find(str);
        while(pos!=string::npos)
        {
                count++;
                idx=text.find(str,pos+1);
        }
        return count;
}
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}