摘要:
用于测试排序算法的正确性和性能测试函数:View Code /* 分别测试 记录有序、反序、随机、所有元素相同的情况*/typedef void (*SortFun)(int *, int *);SortFun pFun;void OrderTest( int n){ clock_t start; float time_used; int *p = new int[n]; pFun = HeapSort; //ascending order int i=0; int flg; while (i<n) p[i] = i++... 阅读全文
posted @ 2012-06-07 21:29
windflying
阅读(428)
评论(0)
推荐(0)

浙公网安备 33010602011771号