可以使用 size() 或 length() 來取得字串長度,使用 empty() 測試字串是否為空,使用 == 比較兩個字串的內容是否相同,例如: #include <iostream> #include <string> ...
確定! 回上一頁