上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 参考了这篇博客的内容和思路:http://www.cnblogs.com/nokiaguy/archive/2013/01/29/2881476.html有一个已经排序的数组(升序),数组中可能有正数、负数或0,求数组中元素的绝对值最小的数,要求,不能用顺序比较的方法(复杂度需要小于O(n)),可以使用任何语言实现例如,数组{-20,-13,-4, 6, 77,200} ,绝对值最小的是-4。算法实现的基本思路三种情况:全负数 全正数 正负皆有1:取最右 时间复杂度为o(1)2:取最左 时间复杂度为o(1)3:二分查找0, 找到为最小,否则最后查找区间,左右取绝对值最小,时间复杂度为o(log 阅读全文
posted @ 2013-02-07 10:57 特务小强 阅读(866) 评论(4) 推荐(0) 编辑
摘要: ADODataTypeEnumADODataTypeEnumValue.NETFrameworkSQLServer!SizeAccess文件OracleVisualBasic6.0adBigInt20Int64SqlDbType.BigInt10OleDbType.BigInt11bigint98VariantadBinary128Byte[]SqlDbType.VarBinary10OleDbType.Binary11binarytimestamp508Raw7VariantadBoolean11BooleanSqlDbType.Bit10OleDbType.Boolean11bit12Ye 阅读全文
posted @ 2013-01-08 16:27 特务小强 阅读(1523) 评论(0) 推荐(0) 编辑
摘要: refer to:http://www.codeproject.com/Articles/368258/I-dont-like-Regex字符串扩展方法类:using System;using System.Collections.Generic;using System.Text.RegularExpressions;namespace RegexExtract{ static class StringExtract { public static bool Like(this string item, string searchPattern) { ... 阅读全文
posted @ 2012-12-25 22:59 特务小强 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 该代码需要有supermap服务端支持代码下载地址:http://files.cnblogs.com/tewuapple/WinFormDemo.rar 阅读全文
posted @ 2012-12-18 14:08 特务小强 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 视频录制是FCS经常会用到的一个功能,其中重要的一点是要评估视频录制的带宽需求来采用合适的尺寸和速率。其大致的算法是:视频宽度 x 视频高度 x 播放速率 (fps) = 总的带宽( bits/sec)但是要注意的是,在使用FCS录制的时候,使用的是Bps,而不是kbps,要转换(8 bits =1 byte )打开比方,使用320×240的视频窗口以30fps的速率录制,其带宽消耗计算:320 x 240 x 30 fps = 2.3 Mbps = 288kByte那么如何根据自身的带宽条件进行不同的视频设置呢,这里有些建议的设置1 : //如果使用的是1M以上的宽度的话,可以选用 阅读全文
posted @ 2012-10-17 16:28 特务小强 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-10-10 22:30 特务小强 阅读(176) 评论(0) 推荐(0) 编辑
摘要: An alternative deserialisation approach is suggestedhere. I modified the code slightly to fix a bug and suit my coding style. All you need is this:View Code 1usingSystem;2usingSystem.Collections;3usingSystem.Collections.Generic;4usingSystem.Collections.ObjectModel;5usingSystem.Dynamic;6usingSystem.L 阅读全文
posted @ 2012-09-14 17:14 特务小强 阅读(7092) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms; /// <summary> /// DataGridView行合并.请对属性MergeColumnNames 赋值既可 /// </summary> public partial class RowMergeView : Da... 阅读全文
posted @ 2012-09-05 11:07 特务小强 阅读(7502) 评论(0) 推荐(2) 编辑
摘要: 下载地址: http://npoi.codeplex.com/ 参考资料: http://www.cnblogs.com/wangrsh2010/archive/2012/03/21/2410182.html 下载地址: http://npoi.codeplex.com/ 参考资料: http:// 阅读全文
posted @ 2012-09-04 15:17 特务小强 阅读(3609) 评论(2) 推荐(0) 编辑
摘要: 前言:前面的几篇文章简单的介绍了如何使用OpenXML创建Excel文档。由于在平时的工作中需要经常使用到Excel的读写操作,简单的介绍下使用OpenXML读取Excel中得数据。当然使用OpenXML将数据读取成什么格式并不重要,本文仅仅介绍如何读取到DataTable中。 准备工作: 1. E 阅读全文
posted @ 2012-09-03 14:13 特务小强 阅读(4637) 评论(5) 推荐(4) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页