统计值,使用ASCII对应的值或者使用 ' ' 单引号内加所需要的 摘要:解题思路:统计值本题牵扯到的知识点有1如何访问一维字符型数组的所有元素2如何表示数字字符 使用ASCII对应的值或者使用 ' ' 单引号内加所需要的第一种:a[i]>=’0’&&a[…… 题解列表 2023年11月27日 0 点赞 0 评论 464 浏览 评分: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 评论 519 浏览 评分:0.0
字符串分类统计 摘要:解题思路:注意事项:这段代码没有考虑输入字符串中的特殊字符、标点符号等情况。它只会统计字母、数字、空格和其他字符的个数。参考代码:#include <stdio.h> #include <strin…… 题解列表 2023年11月04日 0 点赞 0 评论 558 浏览 评分:9.9
c代码记录之字符串分类统计 摘要:解题思路:注意事项:scanf遇到空格停止读取输入,所以使用gets遍历到\0停止,因为字符串结尾默认\0参考代码:#include<stdio.h> int main() { char…… 题解列表 2023年10月31日 0 点赞 0 评论 459 浏览 评分: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 评论 496 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[200]; int len,le…… 题解列表 2023年07月15日 0 点赞 0 评论 667 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int i,letter=0,nu…… 题解列表 2023年07月07日 0 点赞 0 评论 473 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <string.h> /* 输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的…… 题解列表 2023年07月05日 0 点赞 0 评论 516 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[201]; gets(str); str…… 题解列表 2023年06月15日 0 点赞 0 评论 470 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:一、解题思路:C参考代码:#include <stdio.h> #include <string.h> int main() { char str[200]; int z = 0, s…… 题解列表 2023年05月02日 0 点赞 0 评论 624 浏览 评分:8.0