亚洲春色中文字幕久久久-三上亚,一吻二脱三床四吻胸,国产真实伦对白视频全集,在线毛片观看,精品成品入口黄网,国产毛aⅴ片久久久,亚洲AV色香蕉一区二区三区老师,萧皇后A级艳片,色情日本视频更新,99久久亚洲精品日本无码

標題: c語言 統計不同類型字符數 [打印本頁]

作者: liuda    時間: 2015-1-22 02:46
標題: c語言 統計不同類型字符數
#include<stdio.h>//統計不同類型字符數
void main()
{char c;
        int e=0,s=0,n=0,o=0;//這樣輸入是錯誤的:e=s=n=o=1,為什么呢?
printf("please input random characteristics,use enter to end the string\n");
for(;(c=getchar())!='\n';)//斜杠好像被我打反了
{
if((c>=65&&c<=90)||(c>=97&&c<=122))
e++;
else if((c>=48&&c<=57))
n++;
else if(c==32)
s++;
else
o++;
}
printf("the number of english characteristic is %d\n",e);
printf("the number of  space is %d\n",s);
printf("the number of number is %d\n",n);
printf("the number of other characteristics is %d\n",o);
}






歡迎光臨 (http://www.denmoz.com/bbs/) Powered by Discuz! X3.1