题解 1043: [编程入门]三个数字的排序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

冒泡排序哦

摘要:解题思路:注意事项:参考代码:#include<stdio.h> void  b_sort(int a[]){ int i,j,t; for(i=0;i<2;i++){ for(j=0……

[编程入门]三个数字的排序

摘要:解题思路:冒泡排序注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){    int temp=0,flag=0,i,j;    int ……

三个数字的排序-冒泡/选择排序法

摘要:解题思路:冒泡法与选择法排序注意事项:参考代码:#include <stdio.h>int main(){    int i,j,t,a[3];    //定义变量及数组为基本整型    //prin……

降序输出3个数

摘要:解题思路:3个变量依次比较就行了注意事项:参考代码:# include <stdio.h>int main () {int a,b,c,t; scanf ("%d %d %d",&a,&b,&c); ……

排序(C语言自己的排序函数)

#include#include//C语言自己的排序函数为qsort(),内部运用的是快速排序机制intcomp(constvoid*a,constvoid*b);intmain(){inta[3];for(inti=0;i<3;i++){scanf("%d",