摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace WindowsAPI { class CSharp_Win32Api { #... 阅读全文
posted @ 2016-12-22 11:58 向萧 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: // 现代流行的"程序员" public static bool IsOdd(int n) { while (true) { switch (n) { case 1: return true; case 0: return false; } n -= 2; }... 阅读全文
posted @ 2016-12-21 09:16 向萧 阅读(12624) 评论(0) 推荐(1) 编辑
摘要: 未找到与约束 contractname Microsoft.VisualStudio.Utilities.IContentTypeRegistryService 匹配的导出 问题 打开项目时,报错! (我用的VS2013)没来得及截图,手一嘚瑟选择了取消。后来再打开不报错了。相当于选择了“不再提示此 阅读全文
posted @ 2016-12-20 09:17 向萧 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a 阅读全文
posted @ 2016-12-16 00:08 向萧 阅读(341) 评论(0) 推荐(0) 编辑
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2016-12-08 16:07 向萧 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 元组的概要: 数组合并了相同类型的对象,而元组合并了不同类型的对象。元组起源于函数编程语言(如F#) ,在这些语言中频繁使用元组。在N盯4中,元组可通过.NET Fmmework用于所有的NET语言。.NET 4定义了8个泛型Tuple类和一个静态Tuple类,它们用作元组的工厂。这里的不同泛型Tu 阅读全文
posted @ 2016-12-05 09:11 向萧 阅读(6203) 评论(0) 推荐(0) 编辑
摘要: 首先引用MSDN中的一段话来描述一下如何使用异步方式.NET Framework 允许您异步调用任何方法。 为此,应定义与您要调用的方法具有相同签名的委托;公共语言运行时会自动使用适当的签名为该委托定义 BeginInvoke 和 EndInvoke 方法。 BeginInvoke 方法启动异步调用 阅读全文
posted @ 2016-11-29 10:33 向萧 阅读(5747) 评论(1) 推荐(3) 编辑
摘要: $("#myELement") 选择id值等于myElement的元素,id值不能重复在文档中只能有一个id值是myElement所以得到的是唯一的元素 $("div") 选择所有的div标签元素,返回div元素数组 $(".myClass") 选择使用myClass类的css的所有元素 $("*" 阅读全文
posted @ 2016-11-22 09:37 向萧 阅读(4229) 评论(0) 推荐(0) 编辑
摘要: 集合是OOP中的一个重要概念,C#中对集合的全面支持更是该语言的精华之一。 为什么要用泛型集合? 在C# 2.0之前,主要可以通过两种方式实现集合: a.使用ArrayList 直接将对象放入ArrayList,操作直观,但由于集合中的项是Object类型,因此每次使用都必须进行繁琐的类型转换。 b 阅读全文
posted @ 2016-11-22 09:19 向萧 阅读(356) 评论(0) 推荐(0) 编辑
摘要: NPOI使用手册 目录 1.认识NPOI 2. 使用NPOI生成xls文件 2.1 创建基本内容 2.1.1创建Workbook和Sheet 2.1.2创建DocumentSummaryInformation和SummaryInformation 2.1.3创建单元格 2.1.5创建批注 2.1.6 阅读全文
posted @ 2016-11-18 16:11 向萧 阅读(1022) 评论(0) 推荐(0) 编辑