Answer the question
In order to leave comments, you need to log in
Is there a function to count a specific character in a string in C++?
Hello, forum users! Maybe the question sounds stupid, but still: Is there a function to search for a specific element in a string? Or a function that counts a specific element in a string?
I know there are a lot of functions for working with strings. But searches on the Internet on this issue did not give the desired results. Thanks everyone for the response.
Answer the question
In order to leave comments, you need to log in
www.cplusplus.com/reference/algorithm/count
study the standard library
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question