/*
Name: BubbleSort
Copyright: 2006-2007
Author: 哈米
Date: 04-11-06 18:09
Description:
*/
#include<iostream>
#include<algorithm>
template <class Type>
void BubbleSort(Type* array,int n)
{
for(int i=n-1;i>=0;--i)
for(int j=0;j<i;++j)
if(array[j]>array[j+1])
std::swap(array[j],array[j+1]);
}