统计值,使用ASCII对应的值或者使用 ' ' 单引号内加所需要的 摘要:解题思路:统计值本题牵扯到的知识点有1如何访问一维字符型数组的所有元素2如何表示数字字符 使用ASCII对应的值或者使用 ' ' 单引号内加所需要的第一种:a[i]>=’0’&&a[…… 题解列表 2023年11月27日 0 点赞 0 评论 76 浏览 评分:0.0
1012c语言代码 摘要:解题思路:注意事项:1,一定要记得初始化;2,回车键也算输入字符;参考代码:#include<stdio.h>int main(){ char a; int b=0,c=0,d=0,e=0; whil…… 题解列表 2023年11月06日 0 点赞 0 评论 128 浏览 评分:0.0
字符串分类统计 摘要:解题思路:注意事项:这段代码没有考虑输入字符串中的特殊字符、标点符号等情况。它只会统计字母、数字、空格和其他字符的个数。参考代码:#include <stdio.h> #include <strin…… 题解列表 2023年11月04日 0 点赞 0 评论 157 浏览 评分:9.9
c代码记录之字符串分类统计 摘要:解题思路:注意事项:scanf遇到空格停止读取输入,所以使用gets遍历到\0停止,因为字符串结尾默认\0参考代码:#include<stdio.h> int main() { char…… 题解列表 2023年10月31日 0 点赞 0 评论 72 浏览 评分:0.0
C++ 字符串分类统计 摘要: #include //这是个非常万能的头文件 using namespace std; int main() { int y = 0,s = 0,k = 0,q = 0;?//需…… 题解列表 2023年09月08日 0 点赞 0 评论 342 浏览 评分:7.3
字符串分类统计----直接采用getchar()函数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int main() { int letter…… 题解列表 2023年09月03日 1 点赞 0 评论 119 浏览 评分:0.0
字符串分类统计---正则表达式 摘要:解题思路: 我使用的正则表达式注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(…… 题解列表 2023年08月10日 0 点赞 0 评论 154 浏览 评分:0.0
1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b[4]={0,0,0,0}; char a[200]; for (int i = 0; i != 2…… 题解列表 2023年08月01日 0 点赞 0 评论 130 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[200]; int len,le…… 题解列表 2023年07月15日 0 点赞 0 评论 197 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int i,letter=0,nu…… 题解列表 2023年07月07日 0 点赞 0 评论 105 浏览 评分:0.0