C语言题目输入一行字符,分别统计出其中英文字母,空格,数字和其他字符的个数。

日期:2019-12-05 21:12:18 人气:2

C语言题目输入一行字符,分别统计出其中英文字母,空格,数字和其他字符的个数。

错误代码: if('a'<=nextchar<='z'||'A'<=nextchar<='Z') else if('0'<=nextchar<='9') 修改后: #include int main() { int letter=0,space=0,number=0,others=0; char nextchar; printf("Input your strin
    A+
热门评论