1012: [编程入门]字符串分类统计 摘要:#include<stdio.h> int main() { char c[200];int num=0,let=0,pace=0,el=0; gets(c); int len=str…… 题解列表 2022年06月05日 0 点赞 0 评论 144 浏览 评分:0.0
[编程入门]字符串分类统计【利用gets获取字符串】 摘要:解题思路:了解了解ASCII表,需要知道每一种字符的ASCII值,不用记忆,直接查找ASCII表即可注意事项:注意字符串的获取,要灵活使用scanf获取字符,或直接利用gets()直接获取参考代码:#…… 题解列表 2022年05月22日 0 点赞 0 评论 319 浏览 评分:9.9
【cctype字符函数库】求解字符串分类统计 摘要:解题思路:利用cctype字符函数库解决问题cctype库内函数isalnum(c); 如果参数是字母或数字,函数就返回true,否则返回falseisalpha(c); 如果参数是字母,函数返回tr…… 题解列表 2022年05月20日 0 点赞 0 评论 225 浏览 评分:7.3
1012: [编程入门]字符串分类统计 摘要:解题思路:这道题就是统计英文字母、数字、空格和其他字符的个数,方法就是遍历输入的字符串,进行判断。注意事项:注意用getline输入。参考代码:#include<bits/stdc++.h>using…… 题解列表 2022年05月13日 0 点赞 0 评论 358 浏览 评分:9.9
LULU——题解 1012: [编程入门]字符串分类统计 摘要:#include<stdio.h>#include<iostream>#include<string.h>using namespace std;int main(){ int num=0,lette…… 题解列表 2022年05月10日 0 点赞 0 评论 347 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a = 0b = 0c = 0d = 0e = input()for i in e: if i.isalpha(): a+=1 elif i.i…… 题解列表 2022年05月08日 0 点赞 0 评论 169 浏览 评分:0.0
字符串分类统计 题解(简单啦) 摘要:解题思路:输入字符串,判断,计数,输出,欧了。注意事项:要用getline输入!参考代码:#include<bits/stdc++.h>using namespace std;string s;int…… 题解列表 2022年05月08日 0 点赞 0 评论 130 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 202 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 152 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;long long yw,sz,kg,qt;int main(){…… 题解列表 2022年05月07日 0 点赞 0 评论 238 浏览 评分:0.0