1.头文件 #include<cstring> 2.用法 char s[100]; cin>>s; int n=strlen(s); 此时的n为串长 相关文章: 2021-10-13 2021-08-23