#include<cstdio> |
#include<algorithm> |
using namespace std; |
bool cmp( int x, int y) |
{ |
return x>y; |
} |
int main() |
{ |
int i,a[50]={2,3,5,1,-1}; |
sort(a,a+5,cmp); |
for (i=0;i<5;i++) |
printf ( "%d " ,a[i]); |
return 0; |
} |