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

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

筛选

三个数字的排序

摘要:解题思路:注意事项: 非常简单基础的代码,就是可能有些许麻烦,因为if-else语句比较多,尤其注意大括号别漏别错位!!!参考代码:#include <stdio.h>int ……

三元判断解法

摘要:参考代码:#include<stdio.h>int main(){ int a=0, b=0, c=0; int min, mid, max; scanf("%d %d %d&q……

冒泡法排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3]; int i,j;……

存入数组后冒泡排序

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

新手无敌思路,看不懂kan我

摘要:解题思路:自己一看就懂注意事项:参考代码:#include <stdio.h>int main() { int a,b,c,x,y,z; scanf("%d %d %d",&a,&b,&c); if(……

使用C++sort函数

摘要:解题思路:注意sort的头文件是<algorithm>注意事项:参考代码:#include<iostream>#include <algorithm>using namespace std;int m……

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

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[100];    for(int i=0;i<3;i++)    {        scanf……