#include <iostream> using namespace std; #include <bits/stdc++.h> #define max 7 //冒泡排序,升序 void sort(int arr[], int length) { for (int i = 0; i < length - 1; i++) { for (int j = 0; j < length - i - 1; j++) { if (arr[j] > arr[j + 1]) { int...