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 want to search a position in one string which isn’t equal to (,),!,&,|,;.
Share
I think you’re talking about find_first_not_of.
str.find_first_not_of("!(...").