to find a particular charachter in a string in c++ code example
Example: find character in string c++
auto char_to_find = 'a'
if (str.find(char_to_find) != std::string::npos) {
// character found
}
auto char_to_find = 'a'
if (str.find(char_to_find) != std::string::npos) {
// character found
}