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

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

筛选

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

摘要:直接上代码!!!!!!!!!!!!!!!!!!!!!! ```cpp #include //万能头 using namespace std; bool cmp(int a,int b) { ……

三种方法解排序(C语言)

摘要:解题思路:注意事项:参考代码:方法1:使用冒泡排序#include // 冒泡排序函数 void bubbleSort(int arr[], int n) {     int temp;    ……