获取字符串的长度
int GetLength(string str)
功能:获取某一个字符串的长度
str:
需要获取长度的字符串
返回值:字符串对应的长度
例:
string s1 = "abcsd";
int x = GetLength(s1);
x
的值为
5