1012 又学到了不少 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <ctype.h>int main(){ int i=0,j=0,x=0,y=0,c; …… 题解列表 2021年11月07日 0 点赞 0 评论 363 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {int a=0,b=0,c=0,d=0;char ch;while((ch=getchar())!='…… 题解列表 2021年11月15日 0 点赞 1 评论 449 浏览 评分:9.9
[编程入门]字符串分类统计(数组法) 摘要:解题思路:就是字符没学好,所以直接用数组和一些字符函数来解决注意事项:最好用gets函数,不要写个循环把字符一个个输进去,容易错参考代码:#include<stdio.h>#include<strin…… 题解列表 2022年01月09日 0 点赞 0 评论 479 浏览 评分:9.9
gets函数,简单循环 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <string.h> int main() { char a[205]; gets(a); int len…… 题解列表 2022年02月09日 0 点赞 0 评论 651 浏览 评分:9.9
使用2个数组+遍历 完成 字符串分类统计 摘要:解题思路:使用一个整型数组 记录每个类型的个数;使用一个字符数组 存储输入的字符串;遍历这个字符数组 并 逐一判断。注意事项:1.整型数组 作为全局变量时,初始化为0; 2.使用 gets() 可以…… 题解列表 2022年04月05日 0 点赞 0 评论 1200 浏览 评分:9.9
[编程入门]字符串分类统计 摘要:注意事项:n=getchar()要用括号括起来参考代码:#include<stdio.h>int main(){ int a,b,c,d; char n; a=b=c=d=0;…… 题解列表 2022年05月05日 0 点赞 0 评论 533 浏览 评分: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 评论 573 浏览 评分:9.9
1012: [编程入门]字符串分类统计 摘要:解题思路:这道题就是统计英文字母、数字、空格和其他字符的个数,方法就是遍历输入的字符串,进行判断。注意事项:注意用getline输入。参考代码:#include<bits/stdc++.h>using…… 题解列表 2022年05月13日 0 点赞 0 评论 603 浏览 评分:9.9
[编程入门]字符串分类统计【利用gets获取字符串】 摘要:解题思路:了解了解ASCII表,需要知道每一种字符的ASCII值,不用记忆,直接查找ASCII表即可注意事项:注意字符串的获取,要灵活使用scanf获取字符,或直接利用gets()直接获取参考代码:#…… 题解列表 2022年05月22日 0 点赞 0 评论 529 浏览 评分:9.9
【kkky】字符串分类统计 摘要:解题思路: 字符数组接收,运用strlen函数得出数组长度,条件遍历计数得出结果注意事项: gets能读取空格 scanf不能读取空格参考代码:#include <iostream>…… 题解列表 2022年07月23日 0 点赞 0 评论 523 浏览 评分:9.9