1.头文件 #include<cstring>

2.用法 char s[100];

cin>>s;

int n=strlen(s);

此时的n为串长

 

相关文章:

  • 2021-10-13
  • 2021-08-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案