I want to search a position in one string which isn't equal to "(",")","!","&","|",";". If I use if(str[1] != "!" && str[1] != "(" ...), it is too long... is there something I can use to make this simple?
I think you're talking about find_first_not_of. str.find_first_not_of("!(...").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With