一般常用的方法:
字符数组: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++获取字符串长度的几个函数(亟待完善):