不会是用选择排序法吧,先找个最大的,然后次之......
解决方案 »
- 为什么我在VS 2005 里面MFC程序里,CString没有方法可以使用呢?
- VS2005新建类,基类列表框为空,奇怪的报错
- GDI,GDI+ 图像储存问题
- 自己写的网上传送文件的代码 有点小问题 大家看看 (100分啊 )
- odbc/mfc 向mysql 写入二进制数据的问题
- 急!急!急!急!急! 为什么我的服务端收不到数据???高手必要指点一下!
- 在CFormView中对打印机的支持问题
- 我想在对话框上放一个浏览图片的窗口,该用什么控件?
- 关于Dialog的切分
- 键盘钩子的问题
- 已知Rich Edit空间句柄,如何利用API得到里面的内容以及如何向控件里面添加内容
- windows的authenticated users具体是什么类型的用户?
sort
template<class RanIt>
void sort(RanIt first, RanIt last);
template<class RanIt, class Pred>
void sort(RanIt first, RanIt last, Pred pr);
The first template function reorders the sequence designated by iterators in the range [first, last) to form a sequence ordered by operator<. Thus, the elements are sorted in ascending order.The function evaluates the ordering predicate X < Y at most ceil((last - first) * log(last - first)) times.The second template function behaves the same, except that it replaces operator<(X, Y) with pr(X, Y).