当集合或数组内的对象需要排序时,会利用Collections.sort或Arrays.sort来进行排序,通常会implement
Comparable,来实现自定义排序,透过回传值来表示排序的大小。
分类:
编程语言 时间:
2014-06-12 19:33:37
阅读次数:
239
在GDI+中,缩放和剪裁可以看作同一个操作,无非就是原始区域的选择不同罢了。空口无凭,先看具体算法可能更好理解。C#代码usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Drawing;usingSyst...
分类:
其他好文 时间:
2014-06-12 19:21:25
阅读次数:
277
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 6 namespace HotelMIS 7 { 8 public
static class D...
分类:
Web程序 时间:
2014-06-12 19:09:01
阅读次数:
238
1 using System; 2 using System.Collections.Generic;
3 using System.Linq; 4 using System.Text; 5 6 namespace myTest 7 { 8 class
Program 9 {10...
分类:
其他好文 时间:
2014-06-12 18:22:31
阅读次数:
224
[csharp]view
plaincopyusingSystem;usingSystem.Threading;usingSystem.Collections;usingSystem.Collections.Generic;//将线程同步事件封装在此类中,//以便于将这些事件传递给Consumer和...
分类:
编程语言 时间:
2014-06-12 08:35:04
阅读次数:
297