摘要: strstr()的简单实现strstr(s1,s2)是一个经常用的函数,他的作用就是在字符串s1中寻找字符串s2如果找到了就返回指针,否则返回NULL。下面是这个函数的一个简单实现:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->staticconstchar*_strstr(constchar*s1,constchar*s2){assert(s2&&s1);constchar*p=s1,*r=s2;while(*p!= 阅读全文
posted @ 2010-11-02 13:40 higirle 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 题目:一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。要求时间复杂度是O(n),空间复杂度是O(1)。分析:这是一道很新颖的关于位运算的面试题。首先我们考虑这个问题的一个简单版本:一个数组里除了一个数字之外,其他的数字都出现了两次。请写程序找出这个只出现一次的数字。这个题目的突破口在哪里?题目为什么要强调有一个数字出现一次,其他的出现两次?我们想到了异或... 阅读全文
posted @ 2010-11-02 13:17 higirle 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 1):中文版:http://www.cnblogs.com/xingyukun/archive/2007/10/20/931331.html2) :Inversion of Control Containers and the Dependency Injection pattern http://www.martinfowler.com/articles/injection.html3):Ins... 阅读全文
posted @ 2010-10-29 15:20 higirle 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 1): http://soft.zdnet.com.cn/software_zone/2008/0326/783883.shtml2): you can learn more skill about sql in the following url:http://www.1keydata.com/tw/sql/sql-case.html-------------------------------... 阅读全文
posted @ 2010-10-28 18:48 higirle 阅读(183) 评论(0) 推荐(1) 编辑
摘要: 引自:http://hi.baidu.com/peijixiangchina/blog/item/a1a9352ee9a817524ec2266f.htmlSQL经典面试题及答案1.一道SQL语句面试题,关于group by表内容:2005-05-09 胜2005-05-09 胜2005-05-09 负2005-05-09 负2005-05-10 胜2005-05-10 负2005-05-10 负... 阅读全文
posted @ 2010-10-28 18:43 higirle 阅读(431) 评论(0) 推荐(0) 编辑
摘要: Abstract Class versus Interface引自:http://www.codeproject.com/KB/cs/abstractsvsinterfaces.aspxBy Rahman Mahmoodi | 7 Jan 2008 Abstract class versus Interface: Usage and Implementation. Download source ... 阅读全文
posted @ 2010-10-28 14:19 higirle 阅读(351) 评论(0) 推荐(1) 编辑
摘要: Difference betweeen event and delegate is1. Event : An event is a message sent by an object to signal the occurrence of an action. The action could be caused by user interaction, such as a mouse click... 阅读全文
posted @ 2010-10-28 13:24 higirle 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1. For english version: http://www.codeproject.com/KB/dotnet/6importentStepsDotNet.aspxhttp://www.csharpcorner.com/uploadfile/rmcochran/csharp_memory01122006130034pm/csharp_memory.aspx2. 中文翻译版: 详解.NET... 阅读全文
posted @ 2010-10-27 17:59 higirle 阅读(147) 评论(0) 推荐(1) 编辑
摘要: 1). Are there any good Reasons not to use LINQ in my projcts? We use .Net 3.5 and VSTO 3.0.http://stackoverflow.com/questions/1576679/reason-not-to-use-linq2.When to use LINQ in your design?http://soc... 阅读全文
posted @ 2010-10-26 17:47 higirle 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1. Metadata Toolshttp://msdn.microsoft.com/en-us/library/cc304837.aspx2. Web Services Description Language Tool (Wsdl.exe)http://msdn.microsoft.com/en-us/library/7h3ystb6(VS.71).aspx3. ServiceModel Me... 阅读全文
posted @ 2010-10-26 13:31 higirle 阅读(2614) 评论(0) 推荐(2) 编辑