#include<bits/stdc++.h>
using namespace std;
int num[3];
int cmp(int a, int b)
{
return a > b;
}
int main()
{
while(cin >> num[0] >> num[1] >> num[2])
{
sort(num, num + 3, cmp);
cout << num[0] << " " << num[1] << " " << num[2] << endl;
}
return 0;
}
请问算法中的sort函数的sort(num, num + n, cmp)的num + n的n是什么呢?请问这段代码的详细过程是怎样的呢?