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 评论 478 浏览 评分:0.0
统计值,使用ASCII对应的值或者使用 ' ' 单引号内加所需要的 摘要:解题思路:统计值本题牵扯到的知识点有1如何访问一维字符型数组的所有元素2如何表示数字字符 使用ASCII对应的值或者使用 ' ' 单引号内加所需要的第一种:a[i]>=’0’&&a[…… 题解列表 2023年11月27日 0 点赞 0 评论 415 浏览 评分:0.0
c++编写字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(void){ int num=0,space=0,word=0,other=…… 题解列表 2023年11月30日 0 点赞 0 评论 513 浏览 评分:0.0
]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[200]; gets(a); int i,zimu=0,shuzi=0,kong…… 题解列表 2023年11月30日 0 点赞 0 评论 413 浏览 评分:0.0
1012字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){char c;int letters=0,space=0,dight=0,other=0;while((c=ge…… 题解列表 2023年12月05日 0 点赞 0 评论 476 浏览 评分:0.0
getchar解决问题 摘要:解题思路:先输入再用字符比较注意事项:i与j的比较参考代码:#include <stdio.h>int main(){ int word = 0, number = 0, tab = 0, other…… 题解列表 2023年12月07日 0 点赞 0 评论 403 浏览 评分:0.0
优优优质题解!!!!! 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int zimu =0; int shuzi =0; int kong…… 题解列表 2023年12月10日 0 点赞 0 评论 543 浏览 评分:0.0
分享查找字符串内字符类型代码 摘要:解题思路:发现这道题简单,但是写起来麻烦,分享给大家帮助大家快速通过。注意事项:若有看不懂的地方,及时评论哦!参考代码:#include<stdio.h>int main(){ char tex…… 题解列表 2023年12月10日 0 点赞 0 评论 508 浏览 评分:0.0
利用字符串,指针和ASII表进行统计 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; i…… 题解列表 2023年12月21日 1 点赞 0 评论 511 浏览 评分:0.0
字符串分类统计的Python解法 摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s: if i.isdigit(): a+=1 elif i.isalpha(…… 题解列表 2024年01月27日 1 点赞 0 评论 513 浏览 评分:0.0