1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int letter=0,number=0,blank=0,others=0,c; while((c…… 题解列表 2021年07月12日 0 点赞 0 评论 238 浏览 评分:0.0
c++,cin.get()解法 摘要:解题思路:cin.get()读到行的最后一个,但是不读入回车,因此,通过读到null终止循环。注意事项:参考代码:#include<iostream>#include<string>using nam…… 题解列表 2021年07月31日 0 点赞 0 评论 494 浏览 评分:0.0
字符串分类统计另一种方法 摘要:解题思路:注意事项:参考代码:int count1=0,count2=0,count3=0,count4=0; int i; char str[200]; gets(str); for(i=0;str…… 题解列表 2021年08月23日 0 点赞 0 评论 198 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:注意:字母分为大小写。所以有两个范围。参考代码:#include<stdio.h> int main() { int a=0,b=0,c=0,d=0,ch; …… 题解列表 2021年09月07日 0 点赞 0 评论 203 浏览 评分:0.0
编程入门]字符串分类统计 摘要:解题思路:#include <stdio.h>#include <ctype.h>int main(){ int letter = 0,number = 0,blank = 0,others =…… 题解列表 2021年11月10日 0 点赞 0 评论 377 浏览 评分:0.0
1012,好懂的方法 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char a; int b=0,c=0,d=0,e=0,f=0; a=getchar(); while(a!=…… 题解列表 2021年11月10日 0 点赞 0 评论 298 浏览 评分:0.0
字符判断(C语言) 摘要:解题思路:看到字符读取,很容易想到c语言读取字符用的getcher(),利用字符所代表的ascll码判断字符类型并计数完成习题。注意事项:ascll码别弄错参考代码:…… 题解列表 2021年11月27日 1 点赞 0 评论 229 浏览 评分:0.0
1012: [编程入门]字符串分类统计 摘要:import java.io.*; public class Main { public static BufferedReader in = new BufferedReader(n…… 题解列表 2021年12月10日 0 点赞 0 评论 206 浏览 评分:0.0
if~else if处理和正则表达式处理 摘要:解题思路:首先可以想到将字符串转化为字符数组,再用if~else if判断统计。再次思考可以想到能用正则表达式来匹配字符串中的字符类型。注意事项:字符串类型输入需要使用nextLine(),因为输入字…… 题解列表 2022年01月22日 0 点赞 0 评论 726 浏览 评分:0.0
1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ char str[200]; int i; …… 题解列表 2022年02月13日 0 点赞 0 评论 106 浏览 评分:0.0