if(array[i] == "[")
但问题是它不是[它是数组= [,所以它不起作用.
你有什么想法来解决这个问题吗?
谢谢
std::string s = "hell[o"; if (s.find('[') != std::string::npos) ;// find else ;// not find