#include<algorithm>
#include<iostream>
using namespace std;
void print(int x)
{
cout<<x<<' ';
}
int main()
{
int iArray[]={,,-,,,,,,-,,};
const int len=sizeof(iArray)/sizeof(int);
cout<<"由小到时大排序"<<endl;
sort(iArray,iArray+len);
for_each(iArray,iArray+len,print);
cout<<endl;
cout<<"由大到小排序"<<endl;
sort(iArray,iArray+len,greater<int>());
for_each(iArray,iArray+len,print);
cout<<endl;
return ;
}