扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
以下方法都可以。
Boostoperator==(conststring&S1,conststring&S2)const//比较两个字符串是否相等
运算符“>”、“<”、“>=”、“<=”、“!=“为字符串比较重载;
intcompare(conststring&)const//比较当前字符串和S的大小
intcompare(intpos,INTN,conststring&)const//比较从POS开始的当前字符串比较由从POS开始的n个字符和从POS开始的n个字符组成的当前字符串的大小S中的pos2
intcompare(intpos,INTN,conststring&,intpos2,intn2)const
intcompare(constchar*S)const
intcompare(intpos,INTN,constchar*S)const
intcompare(intpos,INTN,constchar*S)const]TCHAR*S,inpos2)const
compare函数在>时返回1,在<时返回1,在<时返回0=
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流