func3.cpp

func3.cpp

#include ‹iostream.h›

#include ‹stl.h›

int main() {

 vector‹int›v;

 v.push_back(4);

 v.push_back(1);

 v.push_back(5);

 sort(v.begin(), v.end(), greater‹int›());

 vector‹int›::iterator i;

 for (i = v.begin(); i != v.end(); i++)  cout ‹‹ *i ‹‹ endl;

 return 0;

}