简单的字符串-题解(C++代码)解法比较简单,利用了C++的string特性和stringstream流转换特性 摘要:解题思路:利用string直接在字符串后面加字符的特性解决注意事项:就是要想办法将统计的数字变为字符串类型,我这里用的stringstream流来解决,比较简单参考代码:#includeusing n…… 题解列表 2020年10月08日 0 点赞 0 评论 489 浏览 评分:0.0
结构体数组解决(c语言代码) 摘要:```c #include #include #include #include #define MAX 10001 typedef struct { char …… 题解列表 2024年08月25日 0 点赞 0 评论 195 浏览 评分:0.0
字符数组遍历解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100] = { 0 };//初始化字符数组 …… 题解列表 2024年08月14日 0 点赞 0 评论 253 浏览 评分:0.0
思路即可解题 摘要:解题思路:定义一个结构体,分别含有字母,字母的数字,然后统计,最后输出;注意事项:参考代码:#include<iostream>using namespace std;typedef struct {…… 题解列表 2024年07月18日 0 点赞 0 评论 146 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0; scanf("%d",&n); g…… 题解列表 2023年12月20日 0 点赞 0 评论 143 浏览 评分:0.0
1402: 简单的字符串 摘要:#include<stdio.h> #include<string.h> int main() { int n,i,len;char str[10000]; scanf("%d\n",&n)…… 题解列表 2022年06月23日 0 点赞 0 评论 130 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[10001],k; int i,j,n,l; scanf("%…… 题解列表 2021年10月27日 0 点赞 0 评论 190 浏览 评分:0.0
简单的字符串-题解(C语言描述/c++代码) 摘要: 解题思路:利用字符串和哈希数组解题,先输入n的值,再接收n个字符串str,在字符串str中对每个个字符出现的数量利用哈希数组进行计数,再根据哈希数组中存储的数量进行计数. 注意事项: …… 题解列表 2020年02月19日 0 点赞 0 评论 425 浏览 评分:0.0
简单的字符串-题解(C语言代码) 摘要:```c #pragma warning(disable:4996) #include #include #include #include void f(char c[]){ …… 题解列表 2020年02月16日 0 点赞 0 评论 515 浏览 评分:0.0
简单的字符串-题解(C语言代码) 摘要: #include #include int main(){ int x,y,z=0,d; scanf("%d",&x); while(z…… 题解列表 2019年08月11日 0 点赞 0 评论 726 浏览 评分:0.0