#include using namespace std; template void swap(Type array[],int i, int j) { Type tmp=array[i]; array[i]=array[j]; array[j]=tmp; } template void quicksort( Type array[], int l, int r) { int i=l; int j=r; Type v=array[int((l+r)/2)]; for (;;) { while (array[i] < v) i=i+1; while (v < array[j]) j=j-1; if (i<=j) { swap(array,i,j); i=i+1 ; j=j-1; } if (i>j) goto ended ; } ended: ; if (l void print(Type array[],int size) { cout << " [ " ; for (int ix=0;ix