#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;
/* int cmp( const int &a, const int &b ){
if( a > b )
return 1;
else
return 0;
} */
int main()
{
int cmp(const int &a,const int &b);
int a[10]={5,3,4,6,7,3,2,3,74,6};
sort(a,a+10,cmp);
for(int i=0;i<=9;i++)
printf("%d ",a[i]);
system("pause");
return 0;
}
// sort(a,a+n,cmp);
int cmp(const int &a,const int &b)
{return a-b;
//int i=*(int*)a,j=*(int*)b;
//if(i<j)return 1;else return -1;
//if((*(int*)a)>(*(int*)b))return 1;
//else return -1;
}