在C++中是否有任何方法可以检查字符串是否以某个字符串开头(小于原始字符串)?就像我们可以用Java做的那样
bigString.startswith(smallString);
c++ string
c++ ×1
string ×1