摘要: 今天来介绍一下C#中遍历排序的方法,今天就介绍下冒泡法,直接插入法和选择排序法。1、冒泡法题目:使用冒泡法对数组中的元素从小到大进行排序。方法一:int[] arr = new int[] { 3, 9, 27, 6, 18, 12, 21, 15 }; foreach (int m in arr) { Console.Write(m + " "); } Console.WriteLine();... 阅读全文
posted @ 2010-03-31 20:57 魄力 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: To impress his date, the young man took her to a very chic Italian restaurant. After sipping some fine wine, he picked up the menu and ordered. "We'll have the giuseppe spomdalucci," he said.  "Sorry ... 阅读全文
posted @ 2010-03-31 07:59 魄力 阅读(253) 评论(0) 推荐(0) 编辑