C++中字符串的长度

定义一个字符串,求其长度:

string str;

str.length();

str.size();

原文地址:https://www.cnblogs.com/sword-/p/8036107.html