摘要: private static void perm(int[] list, int i, int n) { int j; if (i == n) { for (int m = 0; m < list.GetUpperBound(0) + 1; m++) { Console.Write(list[m]); } Console.WriteLine(" "); } else { for (j = i; j <= n; j++) { SWAP(ref list[i], ref list[j]); perm(list, i + 1, n); SWAP(ref list[i] 阅读全文
posted @ 2012-12-03 16:14 (二少)在南极 阅读(312) 评论(0) 推荐(0) 编辑