='0' ch ='A' ch ='a' ch 【字符分析統計】。字符分析統計。" />

青青草免费线看线看|啊在车上停不下来了|国产少女免费观看电视剧|仑乱88MAV|精品老司机在线观看视频|国产一区二区三区高清免费视频|在线观看免费777av

字符分析統計


字符分析統計


#include#include using namespace std;int main() { char ch = '`'; int num = 0,let = 0,spa = 0,oth = 0; scanf ("%c",&ch); while (ch!=(char)10) { if (ch>='0' && ch<='9') num++; else if (ch>='A' && ch<='Z') let++; else if (ch>='a' && ch<='z') let++; else if (ch==' ') spa++; else oth++; scanf ("%c",&ch); } printf ("letters=%d\n",let); printf ("numbers=%d\n",num); printf ("space=%d\n",spa); printf ("others=%d\n",oth); system ("pause"); return 0;}
【字符分析統計】

    猜你喜歡