C语言字符串计数

日期:2013-09-21 04:07:04 人气:1

C语言字符串计数

Here you are the program in C: #include int main(){ int sp=0,upper=0,low=0,num=0,oth=0; int ch; while(1){ ch = getchar(); if (ch=='\n') break; if (ch==' ') sp=sp+1; else if (ch>='A' && ch <= 'Z') uppe
    A+
热门评论