日期:2014-05-17 浏览次数:21070 次
private static void Swap<T>(T[] arr, int start, int end)
{
var m = arr[start];
arr[start] = arr[end];
arr[end] = m;
}
var arr1 = new int[] { 2, 38, 27, 223, 28 };
var arr2 = new string[] { "adsfjass", "2384skdfs", "_(&&we2" };
SelectSort(arr1);
SelectSort(arr2);