插入排序(InsertionSort)

/*
	插入排序:
			1.将数组a[0],a[1]从小到大排序
			2.将a[2],插入到a[0],a[1]从小到大排序
			3. ------
*/
#include
#include
#include

#define SIZE 10

void InsertionSort(int *a,int len)  
{
	int i,j,t,h;

	for(i=1;i=0&&t

你可能感兴趣的:(C/C++)