学习

今天学会了使用C语言求字符串长度的函数

#include<iostream>

#include<cstring>

using namespace std;

int main()

{

char s[101];

cin>>s;

int b;

b= strlen(s);

cout<<b;

}

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务