摘要: 1 static void sort(int[] a) 2 { 3 for (int i = 0; i < a.Length; i++) 4 { 5 for (int j = i; j < a.Length; j++) 6 { 7 if (a[i] > a[j]) 8 { 9 int temp = 阅读全文
posted @ 2017-03-15 09:50 yixiu868 阅读(153) 评论(0) 推荐(0)
摘要: 1 public static void insertion_sort(int[] a){ 2 for(int i = 1; i < a.length; i++) { 3 if(a[i-1] > a[i]) { 4 int temp = a[i]; 5 int j = i; 6 while(j > 阅读全文
posted @ 2017-03-15 09:39 yixiu868 阅读(173) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-03-15 09:28 yixiu868 阅读(168) 评论(0) 推荐(0)
摘要: 1 public class Operation 2 { 3 private double _numberA = 0; 4 private double _numberB = 0; 5 6 public double NumberA 7 { 8 get { return _numberA; } 9 阅读全文
posted @ 2017-03-15 01:24 yixiu868 阅读(177) 评论(0) 推荐(0)
摘要: 1 public class QuickSort { 2 public static void sort(int[] a, int lo, int hi) { 3 int start = lo; 4 int end = hi; 5 int key = a[lo]; 6 7 while(start < 阅读全文
posted @ 2017-03-15 00:05 yixiu868 阅读(176) 评论(0) 推荐(0)