逖靖寒的世界

每天进步一点点

导航

2007年11月12日 #

分治法:用C#实现归并排序

摘要: 根据《算法设计与分析基础》中对归并排序的描述,写了一分C#代码实现。 具体的实现代码如下: 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace MergeSort 6{ 7 class Program 8 { 9 stat... 阅读全文

posted @ 2007-11-12 14:44 逖靖寒 阅读(2082) 评论(3) 推荐(0) 编辑

今天突然理解了“volatile”

摘要: 首先咱们可以看一下MSDN对volatile的定义: The volatile keyword indicates that a field can be modified in the program by something such as the operating system, the hardware, or a concurrently executing thread. The s... 阅读全文

posted @ 2007-11-12 12:36 逖靖寒 阅读(5366) 评论(7) 推荐(0) 编辑