二级C语言-平均值计算(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[11],i,cnt=0,sum=0; double average; for(i=0;i<10;i…… 题解列表 2023年01月09日 0 点赞 0 评论 734 浏览 评分:8.0
[编程入门]自定义函数求一元二次方程(C语言) 摘要:解题思路: 因为题干中提到要用三个函数来解决问题,于是设fc1,fc2,fc3来对应不同情况注意事项:有小数部分则需要设部分变量为浮点类型参考代码:#include <stdio.h>#i…… 题解列表 2023年01月09日 0 点赞 0 评论 481 浏览 评分:0.0
C语言训练-大、小写问题 摘要:解题思路:注意事项:参考代码:#include <ctype.h> #include <stdio.h> #include <string.h> int main(void) { char…… 题解列表 2023年01月09日 0 点赞 0 评论 435 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 正序打印和逆序打印 摘要:解题思路:注意事项:参考代码:#include <string.h> #include <stdio.h> int main(void) { char a[100]={0}; int …… 题解列表 2023年01月09日 0 点赞 0 评论 603 浏览 评分:0.0
编写题解 1210: 小明A+B 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> int main(void) { //输入数据的第一行为一个正整数T, 表示测试数据的…… 题解列表 2023年01月09日 0 点赞 0 评论 558 浏览 评分:0.0
编写题解 1211: 平方和与立方和 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> int main(void) { long long a, b; long lo…… 题解列表 2023年01月09日 0 点赞 0 评论 730 浏览 评分:0.0
1014: [编程入门]阶乘求和 解题思路:当n=1时:sn=1*1当n=2时:sn=1*1+1*2当n=3时,sn=1*1+1*2+1*2*3当n=4时,sn=1*1+1*2*3+1*2*3*4......我们可以发现每当n++的时候,阶乘都是n!+(n++)!那么我们可以用两个变量, 题解列表 2023年01月09日 0 点赞 0 评论 431 浏览 评分:9.9
编写题解 2236: 蓝桥杯算法训练-大小写转换 摘要:解题思路:库函数<ctype.h>的使用注意事项:参考代码:#include <stdio.h>#include <ctype.h>#include <string.h>void change(cha…… 题解列表 2023年01月08日 0 点赞 0 评论 677 浏览 评分:0.0
尝试用链表的形式做这道二叉树题目 摘要:解题思路:构造一个二叉链表,然后顺序输入,相当于完全二叉树,再根据想要获取的m来遍历整个二叉树从而找到m值,并返回该结点,同理,遍历该返回结点获取孩子个数。注意事项: 最后显示内存超限,但对于那些想…… 题解列表 2023年01月08日 0 点赞 1 评论 572 浏览 评分:9.9
[编程入门]结构体之成绩统计2(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct students{ char snu[20],name[20]; int a,b,c;};int main(){ str…… 题解列表 2023年01月08日 0 点赞 0 评论 521 浏览 评分:9.9