I’d like to find strings similar to the one I’m looking for in a std::vector like so:
int main() {
std::vector<std::string> v;
v.push_back("hellostr");
v.push_back("thisishello");
v.push_back("x!");
std::cout << std::count(v.begin(), v.end(), "hello") << std::endl;
return 0;
}
$ ./prog
2