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

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

筛选

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main {   public static void main(String[] args)    ……

利用gets求解字符串的分类统计

摘要:解题思路:在解题之前我们需要知道,在c++中,从键盘读取数据用的是cin,但cin无法读取到空格,所以此法不满足题目要求;然而c语言中的gets却不受空格限制,可以读取空格,故我们可以采用c的方法完成……

用头文件更快捷

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){    char s[300];    ge……

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

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

优优优质题解!!!!!

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

getchar解决问题

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

1012字符串分类统计

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

]字符串分类统计

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

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

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