Wednesday, 22 November 2017

c++ - How can I count the number of occurrences of a user inputed element in a string?

How can I count the number of occurrences of a user
inputed element in a
string?
Example:



Input:
adseddsdf
Input:
a
Output:
1

No comments:

Post a Comment