//****************************************************************************//// Compare QuickSort with MergeSort ////****************************************************************************//#include <windows.h>#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <iostream.h>#include <sys/types.h>#include <sys/timeb.h>#include <string.h>//as following,you can change #define Filein "numberin2.txt" //filenames#define FileoutQS "numberoutQuickSort2.txt"#define FileoutMS "numberoutMergeSort2.txt"#define N 150000//2^10=1024,2^12=4096,2^14=16384,2^16=65536 2^18=//2--255555//******************Produce Numbers to the file Filein**************************void producenumber(long n) //n:how many numbers will be produced*********************************** main end ********************************* 相关文章: