摘要: 先上代码。/**** @author:hushunfeng** 直接插入排序 从小到大进行排列*/#includevoid insertSort(int *array,int arraySize) { //用于缓存被插入数 int temp; int i; in... 阅读全文
posted @ 2014-08-05 16:18 痞子胡先生 阅读(257) 评论(2) 推荐(2) 编辑
摘要: 例如,数组: int array[5] = {1,2,3,4,5};整体往后循环移1个单元的元素。最开始代码如下。/**** @author:hushunfeng** */#includevoid main() { int array[5] = {1,2,3,4,5}; int ... 阅读全文
posted @ 2014-08-05 15:19 痞子胡先生 阅读(187) 评论(2) 推荐(1) 编辑
摘要: /*******************************************************************************/* /* 版权所有 : -/* 模块名 : 排序/* 文件名 : sort.cpp/* 功能描述 : 排序... 阅读全文
posted @ 2014-08-05 10:22 痞子胡先生 阅读(443) 评论(2) 推荐(1) 编辑