摘要: c语言如输入字符串,并求出长度,使用 //#include<string.h> char str[10001]; gets(str); int index = strlen(str); 定义字符串数组需要二维数组。字符串的长度不同,可以不定义有多少个字符串,但要标明最长字符串的长度 char ch[ 阅读全文
posted @ 2021-05-07 22:18 某zero 阅读(24) 评论(0) 推荐(0)