2868-最长最短单词 摘要:解题思路:注意事项:请各位朋友帮忙指正,测试的时候只有91分。参考代码:struct Test{ char s[105]; int n; }; int main(){ struct T…… 题解列表 2023年06月21日 0 点赞 0 评论 327 浏览 评分:0.0
自由下落的距离计算 摘要:#include <stdio.h> int main(){ int N,i; float M,sum=0.0; scanf("%f%d",&M,&N); sum+=M; f…… 题解列表 2023年06月21日 0 点赞 0 评论 234 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, max,num; while (scanf("%d", &n) != EOF) …… 题解列表 2023年06月21日 0 点赞 0 评论 308 浏览 评分:0.0
利用数组、for、if解决问题 摘要:解题思路:利用第二个数组存放元音字母。注意事项:由于b数组未初始化值,所以需要在最后加上‘\0’作为字符串结束符。参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年06月21日 0 点赞 0 评论 217 浏览 评分:0.0
自定义函数 摘要:解题思路:利用char类型逐个输出字符注意事项:无返回值的函数,可以明确定义为空类型,即void参考代码:#include <stdio.h> void output(char a[5]){ …… 题解列表 2023年06月21日 0 点赞 0 评论 257 浏览 评分:0.0
注意加括号 摘要:解题思路:按照题目来设置宏定义就行。注意事项:表达式中最好加上括号,因为宏定义只是单纯的字符变换,不加括号容易和预想的算法不一样,我这里也没有检查是不是会出错,反正加上括号总没错。参考代码:#incl…… 题解列表 2023年06月21日 0 点赞 0 评论 241 浏览 评分:0.0
2911-连续出现的字符 摘要:解题思路:注意事项:注意题目说的是连续出现的次数,并不是整体出现的次数。参考代码:int main(){ char s[1001]; int k; int len; int i,j; …… 题解列表 2023年06月21日 0 点赞 0 评论 353 浏览 评分:0.0
2961-最长单词 摘要:解题思路:采用结构体解决问题注意事项:参考代码:struct Test{ char s[101]; int n; }; int main(){ struct Test test[500…… 题解列表 2023年06月21日 0 点赞 0 评论 314 浏览 评分:0.0
1017-完数的判断 摘要:解题思路:简单的for循环即可实现此功能。注意事项:参考代码:void test01(int n){ int i; int j; int sum; int arr[100]; if…… 题解列表 2023年06月21日 0 点赞 0 评论 252 浏览 评分:0.0
2943-Vigenère密码 摘要:解题思路:寻找规律注意事项:参考代码:void test(char *s1,char *s2,int m,int n){ static char s[1001]; int i; for(i…… 题解列表 2023年06月22日 0 点赞 0 评论 309 浏览 评分:0.0