文件名称:DirectInsertSort
介绍说明--下载内容来自于网络,使用问题请自行百度
实现直接插入排序
要求:封装成一个函数,形式如下:
void DirectInsertSort(bool bOrder, bool bPrintEveryStep, int * array)
其中,参数bOrder是布尔类型变量,true表示升序,false表示降序
bPrintEveryStep表示是否把每一步的排序结果打印出来,true表示打印,false表示不打印
array是待排序的数组
-direct insertion sorting requirements : Packaging, as a function, the form is as follows : void DirectInsertSort (bool bOrder. bool bPrintEveryStep, int * array) which, bOrder parameter is a Boolean variable types, true ascending said. false descending bPrintEveryStep said whether they regard each step of the sort Print out the results, said Print true, not false print array is to sort the array
要求:封装成一个函数,形式如下:
void DirectInsertSort(bool bOrder, bool bPrintEveryStep, int * array)
其中,参数bOrder是布尔类型变量,true表示升序,false表示降序
bPrintEveryStep表示是否把每一步的排序结果打印出来,true表示打印,false表示不打印
array是待排序的数组
-direct insertion sorting requirements : Packaging, as a function, the form is as follows : void DirectInsertSort (bool bOrder. bool bPrintEveryStep, int * array) which, bOrder parameter is a Boolean variable types, true ascending said. false descending bPrintEveryStep said whether they regard each step of the sort Print out the results, said Print true, not false print array is to sort the array
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 文本文档.txt
www.dssz.com.txt
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
