摘要: private static void Demo() { List<int[]> list = new List<int[]>(); list.Add(new int[] { 3, 4 }); list.Add(new int[] { 3, 5 }); list.Add(new int[] { 3, 8 }); list.Add(new int[] { 6, 4 }); l... 阅读全文
posted @ 2009-11-20 15:24 亦心 阅读(339) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-11-19 13:24 亦心 阅读(345) 评论(1) 推荐(0) 编辑
摘要: 要求:不允许使用库函数及外部库,不允许使用现成的排序算法和哈希算法函数1、两个元素之差的最大值private static void GetMaxMin(int[] arrys) { //int[] arrys = new int[] { 3, 5, 1, 6, 9, 8, 4, 7, 2 }; int max = arrys[0]; int min = arrys[0]; for (int i ... 阅读全文
posted @ 2009-11-19 13:16 亦心 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-11-03 17:48 亦心 阅读(12989) 评论(0) 推荐(2) 编辑
摘要: [代码]子类得到父类和子类都共有属性的值,后续的操作可以给子类的其他属性赋值 阅读全文
posted @ 2009-07-31 11:08 亦心 阅读(800) 评论(0) 推荐(0) 编辑
摘要: (1) 游标CURSOR 定义,赋值,打开,使用While Loop循环读取,最后关闭。/* 声明单向游标。双向游标定义为Scroll Cursor */DECLARE MyCursor cursor FOR SELECT Column1, Column2 FROM 某某表Where 某某条件OPEN MyCursor /* 打开游标*/ FETCH NEXT from MyCursor Into... 阅读全文
posted @ 2009-05-16 14:44 亦心 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1、新的异常处理结构2、可以捕获和处理过去会导致批处理终止的错误前提是这些错误不会导致连接中断(通常是严重程度为21以上的错误,例如,表或数据库完整性可疑、硬件错误等等。)。3、TRY/CATCH 构造SET XACT_ABORT ON BEGIN TRY <core logic> END TRY BEGIN CATCH TRAN_ABORT <exception handlin... 阅读全文
posted @ 2009-05-16 14:29 亦心 阅读(363) 评论(0) 推荐(0) 编辑
摘要: AppDomain是CLR的运行单元,它可以加载Assembly、创建对象以及执行程序。AppDomain是CLR实现代码隔离的基本机制。每一个AppDomain可以单独运行、停止;每个AppDomain有自己默认的异常处理;一个AppDomain的运行失败不会影响到其他的AppDomain。CLR在被CLR Host(windows shell or InternetExplorer or SQ... 阅读全文
posted @ 2009-05-09 17:25 亦心 阅读(3093) 评论(1) 推荐(1) 编辑
摘要: 一看ping 服务器IP能否ping通.这个实际上是看和远程sql server 2000服务器的物理连接是否存在。如果不行,请检查网络,查看配置,当然得确保远程sql server 2000服务器的IP拼写正确.二 在Dos或命令行下输入telnet 服务器IP 端口,看能否连通。如telnet 202.114.100.100 1433通常端口值是1433,因为1433是sql server 2... 阅读全文
posted @ 2009-05-04 12:01 亦心 阅读(403) 评论(0) 推荐(0) 编辑
摘要: public delegate void CatListeningHandler();class Cat { public event CatListeningHandler CatCry; public void Cry() { Console.WriteLine("Meow~~~"); OnCr... 阅读全文
posted @ 2009-05-04 11:44 亦心 阅读(409) 评论(0) 推荐(0) 编辑