题解 1129: C语言训练-排序问题(2)

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

筛选

1129排序问题(2)(sort排序)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool compare(int p1, int p2)……

C语言训练-排序问题<2>

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15];int main(){ for(int i=0;i<10;i++……

1129: C语言训练-排序问题<2>

摘要:降序排序,只需要给 sort 函数加第三个参数。#include<bits/stdc++.h> using namespace std; bool cmp(int a,int b){    ……

c++ 快速排序练习一下

摘要:解题思路:使用快速排序完成数组的排序,虽然比较复杂一点,而且对于这个有顺序的序列显然效果是最不好的,只是练习一下。注意事项:参考代码:#include<iostream>using namespace……

sort大法//////

摘要:解题思路:会sort排序就行通过定义cmp函数注意事项:数据长度可以用strlen()读取替换10,这里图方便参考代码:#include<iostream> #include<algorithm> ……