For example I have the following string,
if (str[i] == \'(\' || str[i] == \')\' || str[i] == \'+\' || str[i] == \'-\' || str[i] == \'/\' || s
You can search for single character str[i] in a string with your special characters: std::string("()+-/*").find(str[i]) != std::string::npos
str[i]
std::string("()+-/*").find(str[i]) != std::string::npos