#ifndef ARRAY_aBASED_SORTING_FUNCTIONS
#define ARRAY_aBASED_SORTING_FUNCTIONStemplate<class T>
void Swap(T &x,T &y)
{
T temp;
temp=x;
x=y;
y=temp;
}template<class T>
void SelectionSort(T A[],int n)
{
int smallIndex;
int i,j; for(i=0;i<n-1;i++)
{
smallIndex=i;
for(j=i+1;j<n;j++)
if(A[j]<A[smallIndex])
smallIndex=j;
Swap(A[i],A[smallIndex]);
}
}
#endif       为什么能编译通过而不能运行呢