Answers for "count how many times a char appears in a string c++ lpstr"

C++
7

count a character in a string c++

count(str.begin(), str.end(), 'e')
Posted by: Guest on June-05-2020

Code answers related to "count how many times a char appears in a string c++ lpstr"

Browse Popular Code Answers by Language