吃螺丝

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  C#

摘要:先来简单说下什么是合并排序合并排序-将一个集合分为两个或更多的子集,采用分治法,得到排序之后的合集。昨天自己研究了下,然后写了一段代码,可运行,希望感兴趣的朋友能多提点。//////我是分割线///////using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace CombinAlgorithm{ class Program { static void Main(string[] args) { int[] test = new int[10]{2,6,5,9,10,3, 阅读全文
posted @ 2011-09-23 11:56 吃螺丝 阅读(226) 评论(0) 推荐(0)

摘要:蛋疼 还是蛋疼 无聊写点基础东西控制台程序实现对一个类的排序using System;using System.Collections.Generic;using System.Collections;using System.Linq;using System.Text;namespace ArrayEX{ public class Person : IComparablePerson { public string LastName { get; set; } public string FirstName { get; set; } public Person(string Last 阅读全文
posted @ 2010-12-31 16:49 吃螺丝 阅读(240) 评论(1) 推荐(0)