题解 1057: 二级C语言-分段函数(C) 摘要:解题思路:if嵌套选择即可解决参考代码:#include<stdio.h> int main(void){ float x,y; scanf("%f",&x); if(x<1)…… 题解列表 2022年08月09日 0 点赞 0 评论 588 浏览 评分:0.0
题解 1056: 二级C语言-温度转换(C) 摘要:解题思路:注意数据类型用float最后输出正确的格式即可。参考代码:#include<stdio.h> int main(void){ float F,C; scanf("%f",&F)…… 题解列表 2022年08月09日 0 点赞 0 评论 552 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:会用到的标准库函数,gets(),puts(),strlen(),前两个是在头文件stdio.h中,后一个是在string.h里,用法如下: 1、gets():与scanf("…… 题解列表 2022年08月09日 0 点赞 0 评论 383 浏览 评分:0.0
题解 1055: 二级C语言-进制转换 摘要:解题思路:没啥好说的,不明白为什么会放到数组的课后题。参考代码:#include<stdio.h> int main(void){ int num; scanf("%d",&num); …… 题解列表 2022年08月09日 0 点赞 0 评论 396 浏览 评分:0.0
可以使用递归的思想输出正反序列 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"void fun(int p,int a){ if(p==0) return ; if(…… 题解列表 2022年08月08日 0 点赞 0 评论 430 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转(C) 摘要:解题思路:a=123abc ->exchang()->b=cba321->strcat()注意事项:b[j] = '\0';参考代码:#include<stdio.h> #inclu…… 题解列表 2022年08月08日 0 点赞 0 评论 302 浏览 评分:0.0
C# 蓝桥杯算法提高VIP-扑克排序 摘要:```cpp #include using namespace std; struct fun { char qw; char qe; int qa; int qs; }; …… 题解列表 2022年08月08日 0 点赞 0 评论 550 浏览 评分:0.0
1052: [编程入门]链表合并 摘要:解题思路:注意事项:结构体使用,结构体指针参考代码:#include<stdio.h> #include<malloc.h> typedef struct Node { int sn…… 题解列表 2022年08月08日 0 点赞 0 评论 388 浏览 评分:0.0
蓝桥杯2017年第八届真题-合根植物(C++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e6 + 5;int p[N];int getFath…… 题解列表 2022年08月08日 0 点赞 0 评论 452 浏览 评分:0.0