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

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

筛选

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

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

sort大法//////

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

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

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