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

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

筛选

c++,cin.get()解法

摘要:解题思路:cin.get()读到行的最后一个,但是不读入回车,因此,通过读到null终止循环。注意事项:参考代码:#include<iostream>#include<string>using nam……

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

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

字符串分类统计基础解法

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

1012 又学到了不少

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

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

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