排序算法测试主程序 #include <iostream> #include <stdlib.h> int main() { int i, N = 100; int *a = new int[N]; for(i=0; i<N; i++) { a[i] = 1000 * (1.0 * rand()/RAND_MAX); std::cout << a[i] << " "; } std::cout << std::endl << std::endl; Sort(a, 0, N-1); for(i=0; i<N; i++) std::cout << a[i] << " "; std::cout << std::endl; std::cin >> i; } 另有VB.net版本演示程序:http://www.cnblogs.com/maweifeng/archive/2005/03/22/123594.html 相关文章: 2021-08-20 2021-12-28 2022-12-23 2022-02-24 2021-06-03 2022-01-12 2021-11-22 2022-12-23