快速排序算法
摘要:
#include "stdafx.h"#include "stdlib.h"#include "stdio.h"#include "time.h"#include "math.h"int partion(int a[],int low ,int high){int pivotkey=a[low];while(low<high){while(low<high && a[high]>=pivotkey){high--;} a[low]=a[high]; //比piv 阅读全文
posted @ 2010-10-29 19:45 IT@民工 阅读(170) 评论(0) 推荐(0) 编辑