归并排序
摘要:一.实现1)第一种写法:#include<iostream.h>#include<stdlib.h>#include<time.h>#define LENGTH 15void Merge(int a[],int left,int right,int rightend){ int leftend=right-1; int n1=leftend-left+1; int n2=rightend-right+1; int *tempArrayA=(int*)malloc(sizeof(int)*n1); int *tempArrayB=(int*)malloc(si
阅读全文
posted @ 2011-11-09 19:42
浙公网安备 33010602011771号