void show_dispose(DIR*dir_ptr,char*dirname,int flag) { int u=false; if(flag%U==0) u=true; DIR* dir_ptr2; dir_ptr2=opendir(dirname); if(flag%T==0 || flag % B ==0) { Node *head; head=Creat(dir_ptr2,dirname,u); if (flag % T ==0) { head=InsertSort(head); } if(flag % B == 0) { head=Reverse(head); } show_sort(head,flag); } else show(dir_ptr2,dirname,flag); closedir(dir_ptr2); }
int main() { int *p=(int *)calloc(sizeof(int),100000); int i=1; while(scanf("%d",&p[i]) != EOF) i++; int length = i-1; quicksort(p,1,length); show_sort(p,length); }
int main() { int *p=(int *)calloc(sizeof(int),100000); int i=1; while(scanf("%d",&p[i]) != EOF ) i++; int length=i-1; insert_sort(p,length,200); insert_sort(p,length,20); insert_sort(p,length,7); insert_sort(p,length,1); show_sort(p,length); }