search and count letter by pointer

Oct 11, 2014 at 12:33am
i have a function letter_counting(char * s1,char letter)




i want send to function sentence and the user enter letter


the function must be search and count letter how many times show in the sentence



use pointer do not use dynamic memory
Oct 11, 2014 at 12:09pm
you can use string class
Oct 14, 2014 at 6:18am
Where are you having trouble? Can you post what you have and explain what isn't working?
Topic archived. No new replies allowed.