C语言学习(8)

1 #include <stdio.h>
2 #include <string.h>
3 int main(){
4     char s1[100];
5     gets(s1);
6     puts(s1);
7     printf("字符串长度:%d\n",strlen(s1));
8     return 0;
9 }

 

posted on 2018-06-27 18:40  孙悟空son_ku_kong  阅读(128)  评论(0编辑  收藏  举报

导航