🌈 搜索
📅  最后修改于: 2022-03-11 14:44:48.267000             🧑  作者: Mango
#include std::string s = "a_b_c"; size_t n = std::count(s.begin(), s.end(), '_'); //n=2