Statistics a number of some characters in the source string, the string with a single character are defined by the user; If the source string is: I ate an apple and an orange! String to the an, then the final result is 4; Anyone who can help it? (I'll single letter output, but how to string output? )
CodePudding user response:
When the output with % s
CodePudding user response:
What do you mean? You this string need input, i.e., how is the output? What do you want to output?
CodePudding user response:
To use substring STRSTR, then shift the location of the source string, Looking for used STRCHR characters