Switch to full style
For C/C++ coders discussions and solutions
Post a reply

total ocurrence of substring in sting

Sat Apr 28, 2012 9:40 pm

return total no of times the passing string is present as a substring.
e.g. MyString s(“Lahore is one of the best city of Pakistan”);
cout<<s.totalOccurences(“of”); // Output: 2



Re: total ocurrence of substring in sting

Thu May 10, 2012 1:27 pm

Hey did you found solution to this? thanks

Post a reply
  Related Posts  to : total ocurrence of substring in sting
 Finding a Substring Within a String in php     -  
 diskfree and disk total from cdr's     -  
 Get Disk total space     -  
 calculates the total cost with javascript     -  
 calculate the total type of stocks     -  
 getting gst, pst total to diplay in my javascript form     -  
 Need help with JavaScript function calculate the total pric!     -