结构体数组解决(c语言代码) ```c#include#include#include#include#defineMAX10001typedefstruct{charch;//字符intcount;//字符出现次数}String;//比较函数用于qsort排序字符intcmp(constvoid*a, 题解列表 2024年08月25日 0 点赞 0 评论 596 浏览 评分:0.0
字符数组遍历解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100] = { 0 };//初始化字符数组 …… 题解列表 2024年08月14日 0 点赞 0 评论 614 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100] = { 0 }; …… 题解列表 2024年08月13日 0 点赞 0 评论 386 浏览 评分:9.9
思路即可解题 摘要:解题思路:定义一个结构体,分别含有字母,字母的数字,然后统计,最后输出;注意事项:参考代码:#include<iostream>using namespace std;typedef struct {…… 题解列表 2024年07月18日 0 点赞 0 评论 475 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0; scanf("%d",&n); g…… 题解列表 2023年12月20日 0 点赞 0 评论 443 浏览 评分: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 评论 423 浏览 评分:0.0
简单的字符串-题解c语言 摘要:#include <stdio.h> int main (void){ int count=0,n;// count 是循环进行的次数,n是需要进行的次数 int i,t=1; // i 是…… 题解列表 2022年04月08日 0 点赞 1 评论 775 浏览 评分:9.9
1402: 简单的字符串 摘要:解题思路:开辟一个长度为26的数组,记录字母出现的情况参考代码:#include <stdio.h> #include <string.h> int main () { int i; …… 题解列表 2022年01月07日 0 点赞 0 评论 872 浏览 评分:9.9
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[10001],k; int i,j,n,l; scanf("%…… 题解列表 2021年10月27日 0 点赞 0 评论 461 浏览 评分:0.0