二维数组的转置(多种方法) 摘要: 参考代码: 第一种,直接行列互换循环打印, ```c #include int main() { int a[3][3],t; for(int i=0;i…… 题解列表 2023年08月13日 0 点赞 0 评论 419 浏览 评分:0.0
数据结构-归并排序(C++) 摘要:## 归并排序模板 ```c++ #include #include #include #include using namespace std; const int N = 1e5+…… 题解列表 2023年08月13日 0 点赞 0 评论 663 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理,c++代码实现 摘要:#1045: [编程入门]自定义函数之整数处理 ```cpp #include using namespace std; int a[11]; void out(){//用于输出的函数 …… 题解列表 2023年08月14日 0 点赞 0 评论 396 浏览 评分:0.0
简单思路解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char a[],char b[]){ int i,len; // ge…… 题解列表 2023年08月15日 0 点赞 0 评论 315 浏览 评分:0.0
超详细注解,保姆级小白包看懂! 摘要:参考代码:#include<stdio.h> #include<stdlib.h> typedef struct Student{ double id; double scor…… 题解列表 2023年08月15日 0 点赞 0 评论 420 浏览 评分:0.0
尾插之前记得初始化,返回值为void一定Node**操作! 摘要:#include<stdio.h> #include<stdlib.h> typedef struct Number{ int real; int vir; stru…… 题解列表 2023年08月15日 0 点赞 0 评论 340 浏览 评分:0.0
二级C语言-成绩归类 摘要:解题思路:两个易错点: 1.题目要求到0以及负数停止输入 2.遗漏换行输入的情况我的代码略显冗长(●っー3。○)注意事项:参考代码:my_list = list(map(int, inpu…… 题解列表 2023年08月15日 0 点赞 0 评论 385 浏览 评分:0.0
自定义函数求一元二次方程(回忆求根公式) 摘要:解题思路: 这题主要是记得公式, 一元二次方程ax²+bx+c=0(a≠0)求根: ∆=b²-4ac>0 时, x1=(-b+√∆)/2a; x2=(-b-√∆)/2a; ∆=b²…… 题解列表 2023年08月15日 0 点赞 0 评论 400 浏览 评分:0.0
编写题解 1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int isprime(int num){ if(num<=1) { return 0; } fo…… 题解列表 2023年08月15日 0 点赞 0 评论 356 浏览 评分:0.0
自定义函数之字符提取(一些细节问题) 摘要: 注意事项: 不得不说,他这个判定总让人摸不着头脑,数组记得设到100,不然会判断运行错误,还有数组最后一位记得赋空,不然打印时会往后再读取几位乱码 参考代码: ```c #includ…… 题解列表 2023年08月15日 0 点赞 0 评论 352 浏览 评分:0.0