C ++之string的compare用法. compare用于比较两个字符串是否相等。 用法:. str1.compare(str2);. 如果相等则输出为0,不等则输出为-1。 例子如下:.
確定! 回上一頁