search and count letter by pointer

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
you can use string class
Where are you having trouble? Can you post what you have and explain what isn't working?
Topic archived. No new replies allowed.