?? test_quicksort.c
字號:
#include <stdio.h>
#include "quicksort.h"
#define SIZE 10000
void
ReadData( Sort S )
{
int i;
FILE *filep;
filep = fopen("data10000.txt", "r");
while(fscanf(filep, "%d", &i) != EOF)
Insert( i, S );
fclose(filep);
}
main()
{
Sort S;
S = Initialize( SIZE );
MakeEmpty( S );
ReadData( S );
printf("Number of comparisons by using quick sort: ");
Quicksort( S, SIZE );
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -