容易理解的C语言代码 摘要:解题思路: 虽然没必要用这么复杂的方法, 但就当是温习一下快速排序的算法吧注意事项:参考代码:#include <stdio.h> int partition(int arr[], …… 题解列表 2021年04月01日 0 点赞 0 评论 137 浏览 评分:0.0
数组插入处理 摘要:解题思路:先把要加的数放在数组的最后面,再通过比较大小寻找合适放置的位置注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; for(i=0…… 题解列表 2021年04月07日 0 点赞 0 评论 149 浏览 评分:0.0
数组插入处理 摘要:#include <stdio.h>int main(void){ int a[10] = { 0 }; int i; int n; int x = 1; for (i = 0; i <= 8; i+…… 题解列表 2021年04月09日 0 点赞 0 评论 148 浏览 评分:0.0
利用sort函数 摘要:解题思路:利用algorithm的sort函数对插入后的数组重新进行从小到大的排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp…… 题解列表 2021年04月17日 0 点赞 0 评论 140 浏览 评分:0.0
1025: [编程入门]数组插入处理(C语言) 摘要:#include <stdio.h>int main (){ int a[10]; //遍历输入 int i = 0; for (i=0;i<9;i++) { scanf("%d",&a[i])…… 题解列表 2021年05月02日 0 点赞 0 评论 203 浏览 评分:0.0
【C++较复杂版解法】 摘要:参考代码:#include <iostream> using namespace std; int main() { int list[100],N,temp,i; for(i=0;i<…… 题解列表 2021年06月22日 0 点赞 0 评论 181 浏览 评分:0.0
简单粗暴,使用冒泡排序,将最后一个数字放在最后,然后排序后输出 摘要:```c #include int main(){ int nums[10]; for(int x=0;x…… 题解列表 2021年06月23日 0 点赞 0 评论 365 浏览 评分:0.0
1025: [编程入门]数组插入处理——题解 C 摘要:解题思路:因为是已经正排好的数组,所以直接找到比输入项大的那项之后所有项所有都往后移动就可以,如果没有比他大的就直接放在最后。注意事项:这个写法只适用于小数据量,大型数据量建议快排。参考代码:#inc…… 题解列表 2021年06月26日 0 点赞 0 评论 316 浏览 评分:0.0
[编程入门]数组插入处理 稍显麻烦的解法,三次循环 摘要: #include #include #define N 1000 int main() { int a[N],b[N]; …… 题解列表 2021年06月30日 0 点赞 0 评论 296 浏览 评分:0.0
1025[编程入门]数组插入处理 摘要:```c #include int main(){ int a[10],number; int i,j; for (i = 0; i < 10; i++) …… 题解列表 2021年07月07日 0 点赞 0 评论 235 浏览 评分:0.0