在哪你都看得到我记住这句话 解题思路:这道题的思路是因为用ASCII解决,因为在ASCII表里数字在一个范围字母在一个范围,剩下的就是其他。所以我们只需要遍历一下这个字符串记录一下每个范围的值有多少就解决了参考代码:#include#includeusingnamespacestd;intma 题解列表 2026年03月19日 1 点赞 0 评论 980 浏览 评分:0.0
用标准库函数进行字符串分类 摘要:如下```#include #include using namespace std;int main(){ string input; getli…… 题解列表 2025年10月18日 2 点赞 0 评论 919 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要: #include #include #include #include #include using namespace std;…… 题解列表 2025年04月03日 5 点赞 0 评论 1726 浏览 评分:10.0
字符串分类统计C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){char a[200];cin.get…… 题解列表 2024年08月07日 6 点赞 0 评论 1246 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,f; char s[200]; a=…… 题解列表 2024年07月24日 0 点赞 0 评论 517 浏览 评分:0.0
利用gets求解字符串的分类统计 解题思路:在解题之前我们需要知道,在c++中,从键盘读取数据用的是cin,但cin无法读取到空格,所以此法不满足题目要求;然而c语言中的gets却不受空格限制,可以读取空格,故我们可以采用c的方法完成此题注意事项:1、使用gets时需包含头文件#include, 题解列表 2024年01月17日 0 点赞 0 评论 616 浏览 评分:2.0
利用字符串,指针和ASII表进行统计 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; i…… 题解列表 2023年12月21日 1 点赞 0 评论 511 浏览 评分: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
C++ 字符串分类统计 #include//这是个非常万能的头文件usingnamespacestd;intmain(){inty=0,s=0,k=0,q=0;?//需要声明四个为0的变量chara[200];gets(a);intl=strlen(a);for(inti=0;i='a'&&a 题解列表 2023年09月08日 0 点赞 0 评论 784 浏览 评分:7.3
字符串分类统计----直接采用getchar()函数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int main() { int letter…… 题解列表 2023年09月03日 1 点赞 0 评论 440 浏览 评分:0.0