2021年11月25日

第十一次作业

摘要: 循环求字符串长度。 #include<stdio.h> main() { char a[20]; int i=0,lenth=0; printf("请输入字符"); scanf("%s",a); while(a[i++]!='\0'){ lenth++; } printf("字符串的长度为%d",l 阅读全文

posted @ 2021-11-25 22:34 Lucky筱筱 阅读(7) 评论(0) 推荐(0) 编辑

导航