上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: U2合唱团在17分钟内得赶到演唱会场,途中必需跨过一座桥,四个人从桥的同一端出发,你得帮助他们到达另一端,天色很暗,而他们只有一只手电筒。一次同时最多可以有两人一起过桥,而过桥的时候必须持有手电筒,所以就得有人把手电筒带来带去,来回桥两端。手电筒是不能用丢的方式来传递的。四个人的步行速度各不同,若两... 阅读全文
posted @ 2014-09-07 14:40 liqipeng 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: int temp = 0; for (int i = 1; i = 0; j-- ) { arr[j + 1] = arr[j]; if (temp... 阅读全文
posted @ 2014-05-03 16:30 liqipeng 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1 . 下载dojotoolkit的src版,找到dijit/tests/tree/test_Custom_TreeNode.html,这是一个自定义节点的例子2. http://dojotoolkit.org/reference-guide/1.9/dijit/Tree-examples.html... 阅读全文
posted @ 2014-05-03 00:54 liqipeng 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1. 存储过程 2. 游标 3. 复制表的数据 4. group by … having … 5. 事务 5. 先判断表是否存在再创建表 6. 获取SQL Server表结构 (出处:http://www.cnblogs.com/ynbt/archive/2012/07/16/2593389.htm 阅读全文
posted @ 2014-04-29 16:14 liqipeng 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 初次使用SQLite遇到了莫名其妙的问题:未能加载文件或程序集“System.Data.SQLite, Version=1.0.92.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139”或它的某一个依赖项。试图加载格式不正确的程序。编译是通过的,一... 阅读全文
posted @ 2014-04-22 00:14 liqipeng 阅读(4770) 评论(0) 推荐(0) 编辑
摘要: C#中规定:如果程序的控制流进入了一个带finally块的try语句,那么finally语句块始终会被执行例子:class Program { static void Main(string[] args) { Console.WriteLin... 阅读全文
posted @ 2013-11-24 16:51 liqipeng 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 一、如何用VS创建Windows服务1、新建C# Windows服务:windows service工程2、新建windows service工程后,系统自动生成一个Service1.cs文件,默认是其设计视图。选择查看其代码,默认有构造函数、OnStart、OnStop三个函数3、新建了C# Wi... 阅读全文
posted @ 2013-11-01 23:17 liqipeng 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1.在运行中输入: powercfg -h on或者在命令行下输入: powercfg.exe /hibernate on注意:执行这个命令需要管理员权限。“休眠”回来了2.还是没有回来?看看“混合睡眠”是不是被打开了如果执行上面的命令后还没有,这时候打开控制面板→电源选项→改变计划设置→更改... 阅读全文
posted @ 2013-10-19 23:06 liqipeng 阅读(801) 评论(0) 推荐(0) 编辑
摘要: StringBuilder output = new StringBuilder();String xmlString = @" The Autobiography of Benjamin Franklin Benjamin ... 阅读全文
posted @ 2013-07-22 01:28 liqipeng 阅读(267) 评论(0) 推荐(0) 编辑
摘要: privatestringGetMd5(StreamfileStream){MD5CryptoServiceProvidermd5Provider=newMD5CryptoServiceProvider();byte[]bytesHash=md5Provider.ComputeHash(fileSt... 阅读全文
posted @ 2013-07-22 00:49 liqipeng 阅读(191) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页