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

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

筛选

1012c语言代码

摘要:解题思路:注意事项:1,一定要记得初始化;2,回车键也算输入字符;参考代码:#include<stdio.h>int main(){ char a; int b=0,c=0,d=0,e=0; whil……

c++编写字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=……

]字符串分类统计

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[200];    gets(a);    int i,zimu=0,shuzi=0,kong……

1012字符串分类统计

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){char c;int letters=0,space=0,dight=0,other=0;while((c=ge……

getchar解决问题

摘要:解题思路:先输入再用字符比较注意事项:i与j的比较参考代码:#include <stdio.h>int main(){ int word = 0, number = 0, tab = 0, other……

优优优质题解!!!!!

摘要:解题思路:注意事项:参考代码:public static void main(String[] args) {    int zimu =0;    int shuzi =0;    int kong……

分享查找字符串内字符类型代码

摘要:解题思路:发现这道题简单,但是写起来麻烦,分享给大家帮助大家快速通过。注意事项:若有看不懂的地方,及时评论哦!参考代码:#include<stdio.h>int main(){    char tex……

字符串分类统计的Python解法

摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s:    if i.isdigit():        a+=1    elif i.isalpha(……