一般常用的方法:
字符數組:strlen()
string對象:length()
獲取C/C++字符串、字符數組長度:
https://blog.csdn.net/m0_37592397/article/details/79701992
C++獲取字符串長度的幾個函數(亟待完善):
一般常用的方法:
字符數組:strlen()
string對象:length()
獲取C/C++字符串、字符數組長度:
https://blog.csdn.net/m0_37592397/article/details/79701992
C++獲取字符串長度的幾個函數(亟待完善):