摘要: class Program { public static void ssort(int[] list) { int i, j, min, temp; for (i = 0; i < list.Length - 1; i++) { min = i; for (j = i + 1; j < list.Length; j++) { if (list[j] < list[min]) min = j; } temp = list[i]; list[i] = list[min]; list[min] = temp; } } static void Main(string[] args) 阅读全文
posted @ 2011-03-23 15:12 吴蒋 阅读(113) 评论(0) 推荐(0) 编辑