摘要: 1.用循环结构求字符串长度。 #include<stdio.h> main() { char str[80]; int i=0; int length=0; gets(str); puts(str); while(str[i++]!='\0') length++; printf("字符串的长度为%d 阅读全文
posted @ 2021-11-24 21:57 小猪胖乎乎 阅读(34) 评论(0) 推荐(0)