SyntaxFix
Write A Post
Hire A Developer
Questions
#include <algorithm> std::string s = "a_b_c"; size_t n = std::count(s.begin(), s.end(), '_');