王雪奇

博客园 首页 新随笔 联系 订阅 管理
1.编写程序,统计字符串中大写字母的个数。 #include <stdio.h> main(){ char str[20]; int i,cnt; cnt=i=0; gets(str); while(str[i]!='\0'){ if(str[i]>='A'&&str[i]<='Z'){ cnt++
posted on 2021-12-08 21:38  雪.?!  阅读(26)  评论(0编辑  收藏  举报