摘要: ⦁ 用循环结构求字符串长度 #include <stdio.h> main() { char str[80]; int i=0; int length=80; gets(str); puts(str); while(str[i++]!='\0') length++; printf("字符串的长度为: 阅读全文
posted @ 2021-11-27 23:27 风再起时, 阅读(31) 评论(0) 推荐(0)