作用等同于length() size_t size() const noexcept; //C标准库函数,返回C风格 ... 实际项目中,C++ string获取长度时,我们经常使用以下两种方法。
確定! 回上一頁