题解 1012: [编程入门]字符串分类统计

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

字符判断(C语言)

摘要:解题思路:看到字符读取,很容易想到c语言读取字符用的getcher(),利用字符所代表的ascll码判断字符类型并计数完成习题。注意事项:ascll码别弄错参考代码:……

字符串分类统计

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {int a=0,b=0,c=0,d=0;char ch;while((ch=getchar())!=&#39;……

1012,好懂的方法

摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char a; int b=0,c=0,d=0,e=0,f=0; a=getchar(); while(a!=……

编程入门]字符串分类统计

摘要:解题思路:#include <stdio.h>#include <ctype.h>int main(){    int letter = 0,number = 0,blank = 0,others =……

1012 又学到了不少

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <ctype.h>int main(){    int i=0,j=0,x=0,y=0,c;            ……

字符串分类统计基础解法

摘要:解题思路:先输入字符串,然后统计英文字母、数字、空格、剩下的就是其他字符了。注意事项:注意字符要用单引号。要用与字符串有关的#include<stdio.h>.字符串最后有&#39;\0&#39;,判……

[编程入门]字符串分类统计

摘要:解题思路:注意事项:注意:字母分为大小写。所以有两个范围。参考代码:#include<stdio.h> int main() {     int a=0,b=0,c=0,d=0,ch;    ……