#include
#include
#include
#include
#include
using namespace std;
void show(const char *msg, vector vect);
int main()
{
vector v(10);
for(unsigned i=0; i < v.size(); i++)
v[i] = rand() % 100;
show("Original order:", v);
sort(v.begin(), v.end(), greater());
show("Order after sorting into descending order:", v);
return 0;
}
void show(const char *msg, vector vect) {
cout << msg << endl;
for(unsigned i=0; i < vect.size(); ++i)
cout << vect[i] << endl;
}