compare 用於比較兩個字串是否相等。 用法:. str1.compare(str2);. 如果相等則輸出為0,不等則輸出為-1。 例子如下:. 1 int main() { 2 string str1 ...
確定! 回上一頁