摘要: 数组是大学里经常拿来做算法练习的对象。一些经典算法非常有价值,考试、装逼、面试都十分有用。但现在是效率时代,编程讲究生产效率,利用LINQ,可以让程序猿避免写一些基本算法,把精力花在业务处理上。下面以数组为例,展示一些常用LINQ操作。static void Main(string[] args) { int[] a = { 1, 2, 3, 4, 5, 6, 7 }; int[] b = { 4, 5, 6, 7, 8, 9, 10 }; int[] c = { 1, 2, 3, 3, 4, 1, 2, 4, 6, 1, 6, 5 }; // 交集 var... 阅读全文
posted @ 2012-12-23 16:49 齐永强2012 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1、邻接表2、递归查询3、枚举路径4、嵌套集5、闭包表 阅读全文
posted @ 2012-12-18 22:20 齐永强2012 阅读(144) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/shuilv2000/article/details/6440380 阅读全文
posted @ 2012-12-12 16:22 齐永强2012 阅读(100) 评论(0) 推荐(0) 编辑
摘要: http://www.csharpwin.com/csharpspace/12364r8335.shtml 阅读全文
posted @ 2012-12-03 18:08 齐永强2012 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1、声明程序中用到的命名空间 //using System2、给命名空间定义别名 // using io=system.io3、保证资源的正确释放 //using(io.FileStream fs=io.file.create(appdomain.currentdomain.BaseDirectory+\\testfile.txt){console.writeline("new file in "+AppDomain.CurrentDomain.BaseDirectory+"directory");fs.close();})参考值:http://zhid 阅读全文
posted @ 2012-12-03 10:56 齐永强2012 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://blog.163.com/y_p_xu/ 介绍.NET 和MVC之类的 阅读全文
posted @ 2012-12-02 22:57 齐永强2012 阅读(84) 评论(0) 推荐(0) 编辑