﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-AL,zero,one...work,--&gt;thinker</title><link>http://www.cnblogs.com/al-zerone/</link><description /><language>zh-cn</language><lastBuildDate>Thu, 28 Aug 2008 15:24:28 GMT</lastBuildDate><pubDate>Thu, 28 Aug 2008 15:24:28 GMT</pubDate><ttl>60</ttl><item><title>离开blog一段时间了，回归吧！</title><link>http://www.cnblogs.com/al-zerone/archive/2008/08/12/1265673.html</link><dc:creator>work</dc:creator><author>work</author><pubDate>Tue, 12 Aug 2008 01:48:00 GMT</pubDate><guid>http://www.cnblogs.com/al-zerone/archive/2008/08/12/1265673.html</guid><wfw:comment>http://www.cnblogs.com/al-zerone/comments/1265673.html</wfw:comment><comments>http://www.cnblogs.com/al-zerone/archive/2008/08/12/1265673.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/al-zerone/comments/commentRss/1265673.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/al-zerone/services/trackbacks/1265673.html</trackback:ping><description><![CDATA[种种原因，暂时搁浅了blog的内容，以后逐步充实内容。
<img src ="http://www.cnblogs.com/al-zerone/aggbug/1265673.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41940/" target="_blank">[新闻]惠普139亿美元完成对EDS的收购</a>]]></description></item><item><title>Start Notes client without typing password using Lotus notes c++ Api</title><link>http://www.cnblogs.com/al-zerone/archive/2008/08/12/1265667.html</link><dc:creator>work</dc:creator><author>work</author><pubDate>Tue, 12 Aug 2008 01:44:00 GMT</pubDate><guid>http://www.cnblogs.com/al-zerone/archive/2008/08/12/1265667.html</guid><wfw:comment>http://www.cnblogs.com/al-zerone/comments/1265667.html</wfw:comment><comments>http://www.cnblogs.com/al-zerone/archive/2008/08/12/1265667.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/al-zerone/comments/commentRss/1265667.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/al-zerone/services/trackbacks/1265667.html</trackback:ping><description><![CDATA[<p><font face="Verdana">USING EXTPWD<br />
------------<br />
Before using EXTPWD, you should copy the EXTPWD program to the Notes<br />
executable directory, which is the directory containing the Notes program<br />
files and libraries. The name of the EXTPWD program DLL or shared library<br />
depends on the platform, as follows:</font></p>
<p><font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nextpwd.dll&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32-bit Windows<br />
&nbsp;libextpsw.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Solaris SPARC and Intel Editions</font></p>
<p><font face="Verdana">You also need to instruct Notes to load the EXTPWD program by adding one<br />
of the following entries to notes.ini, the Notes environment file (do this<br />
before starting Notes):</font></p>
<p><font face="Verdana">&nbsp;PC platforms:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTMGR_ADDINS=extpwd<br />
&nbsp;Solaris:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTMGR_ADDINS=libextpsw.so </font></p>
<p><font face="Verdana">When Notes requires a password, it will read the password from a text file<br />
called password.txt in the Notes data directory.&nbsp; Be sure to create this<br />
file in the Notes data directory before using EXTPWD.</font></p>
<p><font face="Verdana">Note: The main entry point in the EXTPWD program is called by Notes when<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Notes starts, and should NOT be called from your own application code.</font></p>
<p><font face="Verdana">You can test that the EXTPWD is working correctly by starting Notes after<br />
performing the steps described above.&nbsp; You should find that you are not<br />
prompted for your password in circumstances where you would have been<br />
prompted without using EXTPWD, for example when first accessing a remote<br />
database.</font></p>
<p><font face="Verdana">Once you establish that your Notes client no longer prompts you for a <br />
password, you should be able to run any Notes C or C++ API application<br />
without being prompted for a password.</font></p>
<p><font face="Verdana">As mentioned above, keeping an unencrypted password in a text file is not<br />
recommended for a real application, because it makes the password available<br />
to anyone with access to the file.<br />
</font></p>
<p>&nbsp;</p>
<p>这是IBM官方提供的解决方案，我将提供给大家nextpwd.dll解决这个问题。</p>
<p>&nbsp;</p>
<p>The DLL:<font face="Verdana">http://files.cnblogs.com/al-zerone/notesnopass.zip</font></p>
<img src ="http://www.cnblogs.com/al-zerone/aggbug/1265667.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41940/" target="_blank">[新闻]惠普139亿美元完成对EDS的收购</a>]]></description></item><item><title>Windows Server 2008 个人安装使用体验指南(针对新手)系列(一)</title><link>http://www.cnblogs.com/al-zerone/archive/2008/03/10/1098778.html</link><dc:creator>work</dc:creator><author>work</author><pubDate>Mon, 10 Mar 2008 06:44:00 GMT</pubDate><guid>http://www.cnblogs.com/al-zerone/archive/2008/03/10/1098778.html</guid><wfw:comment>http://www.cnblogs.com/al-zerone/comments/1098778.html</wfw:comment><comments>http://www.cnblogs.com/al-zerone/archive/2008/03/10/1098778.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/al-zerone/comments/commentRss/1098778.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/al-zerone/services/trackbacks/1098778.html</trackback:ping><description><![CDATA[<p style="margin-left: 18pt; text-indent: -18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">A．&nbsp;</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">Windows server 2008 </span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">微软发布了相当长一段时间了，一直没有机会试用，有幸因工作需要进行研究配置，无奈本人技术有限，在研究配置的同时写下相关文档，供新手参考使用。</span></p>
<p style="margin-left: 18pt; text-indent: -18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">B．&nbsp;</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">（本人研究配置的只于本人工作需要有关，其他的一些相关研究大家可以email于我共同探讨）</span></p>
<p style="margin-left: 18pt; text-indent: -18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">C．&nbsp;</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">试用安装前提：</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">申请微软windows server 2008 试用key---只要具有微软live ID即可，在微软官方网站下载使用，至于网上很多经过修改的版本建议大家三思后再下载，如果你只是简单的使用体验那无妨，如果作为服务器进行配置试用，还是官方的好些。</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">至于安装给大家提个醒---第一次安装的时候，选择language（不幸选择了english@.@!!!锻炼英语。。。），在以后的使用中肯定需要安装一些中文软件进行支持，到时还得进行调试并且会比较麻烦，因此建议大家直接安装选择chinese(PRC)。</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">（另外刚开始安装不需要输入key进行激活，默认的是3天试用，你申请的key可以稍后激活，下文将给出激活位置。）</span></p>
<p style="margin-left: 18pt; text-indent: -18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">D．</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">安装过程相当简单，相当于无人安装，以前xp 03系列的安装选择regional...都在最开始配置完毕了，并且2008支持几乎大部分的驱动，因此不必担心驱动的问题。</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">下面是安装好的logon界面：<br />
<img style="width: 865px; height: 693px" height="693" alt="" src="http://www.cnblogs.com/images/cnblogs_com/al-zerone/Win2008Log.JPG" width="865" border="0" /><br />
</span></p>
<p style="margin-left: 18pt; text-indent: -18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">E．&nbsp;</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">登陆界面后，熟悉03的都知道会弹出一个服务器的配置界面，08的同样具备，不过08更为人性化和专业化，具备了set time zone;configure networking;Provide....(下图)<br />
<img style="width: 864px; height: 648px" height="648" alt="" src="http://www.cnblogs.com/images/cnblogs_com/al-zerone/Untitled-1.jpg" width="864" border="0" /><br />
</span></p>
<p style="margin-left: 18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">这个界面进行简单的配置即可正常使用Server 2008，虽然都是英文但是都非常简单，相信大家多几次click就ok了。</span></p>
<p style="margin-left: 18pt; text-indent: -18pt"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">F．&nbsp;</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">下面将详细介绍 Configure networking,Add roles,Add features,Enable Remote Desktop,以及Configure Windows Firewall</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">Configure networking—</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">相信一定有人说网络配置就不用说了吧。。。用过操作系统的都知道。呵呵，话是不错，不过这里不再介绍ipv4的配置，即正常的ip配置，但是还是需要配置进行连网的，因为server 2008已经内置并公开支持ipv6，默认是已经安装的，因此介绍ipv6的配置。</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">这个的前提是ipv4已经配置完毕，而对于有些需要支持ipv6的局域网，最最简单的配置。。。（别板砖我，我说了是对于新手而言的。）<br />
<img style="width: 864px; height: 649px" height="649" alt="" src="http://www.cnblogs.com/images/cnblogs_com/al-zerone/Untitled-2.jpg" width="864" border="0" /><br />
</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">如上图设置，address--</span><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">fec0:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaa1</span></p>
<p style="margin-left: 18pt; text-indent: 0cm"><span style="font-size: 9pt; font-family: '微软雅黑','sans-serif'">同理局域网内的其他机器相应的为...:aaa2;...:aaa3注意是16进制。<br />
<br />
（请关注陆续系列，希望大家共同探讨,email，<a href="mailto:workwang@gmail.com">workwang@gmail.com</a>）<br />
另召集系统网络安全高手，莫非阁下是传说中的红客。。。email我吧，学习交流合作。<br />
</span></p>
<img src ="http://www.cnblogs.com/al-zerone/aggbug/1098778.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41939/" target="_blank">[新闻]搜狗五笔输入法发布</a>]]></description></item><item><title>ASP Net - User Creation from WebAdmin tool failed(解决方案)</title><link>http://www.cnblogs.com/al-zerone/archive/2008/03/05/1091120.html</link><dc:creator>work</dc:creator><author>work</author><pubDate>Wed, 05 Mar 2008 01:34:00 GMT</pubDate><guid>http://www.cnblogs.com/al-zerone/archive/2008/03/05/1091120.html</guid><wfw:comment>http://www.cnblogs.com/al-zerone/comments/1091120.html</wfw:comment><comments>http://www.cnblogs.com/al-zerone/archive/2008/03/05/1091120.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/al-zerone/comments/commentRss/1091120.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/al-zerone/services/trackbacks/1091120.html</trackback:ping><description><![CDATA[<p>当我 create a user from the web site administration tool provided by Asp.NET.时抛出异常：<br />
The following message may help in diagnosing the problem: Exception has been<br />
thrown by the target of an invocation. at<br />
System.RuntimeMethodHandle._InvokeMethodFast(Objec t target, Object[]<br />
arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes,<br />
RuntimeTypeHandle typeOwner) at<br />
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]<br />
arguments, Signature sig, MethodAttributes methodAttributes,<br />
RuntimeTypeHandle typeOwner) at<br />
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags<br />
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean<br />
skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object<br />
obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo<br />
culture) at<br />
System.Web.Administration.WebAdminMembershipProvid er.CallWebAdminMembershipProviderHelperMethodOutPa rams(String<br />
methodName, Object[] parameters, Type[] paramTypes) at<br />
System.Web.Administration.WebAdminMembershipProvid er.CreateUser(String<br />
username, String password, String email, String passwordQuestion, String<br />
passwordAnswer, Boolean isApproved, Object providerUserKey,<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
<br />
去google 了一下没有什么结果，不过在一个英文站点发现有人说关于数据库lock的可能性，于是发现自己使用的是一个示例站点，里面已经存在了ASPNETDB，尝试着删除这个数据库并重新建立成员即可。<br />
<br />
This is the answer from "<a href="http://forums.asp.net/members/mlotfi.aspx">mlotfi</a>"&nbsp;&nbsp;&nbsp;:</p>
<div class="ForumPostContentText">If you are copying the project from another computer (downloaded), to solve the problem just delete ASPNETDB&nbsp; from App_data, and go to website--&gt; ASP.NET Configuration and add a new user. </div>
<img src ="http://www.cnblogs.com/al-zerone/aggbug/1091120.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41938/" target="_blank">[新闻]新学年开始 大学生适用的十大互联网应用</a>]]></description></item><item><title>C#常用排序算法大全</title><link>http://www.cnblogs.com/al-zerone/archive/2008/02/22/1077345.html</link><dc:creator>work</dc:creator><author>work</author><pubDate>Fri, 22 Feb 2008 03:28:00 GMT</pubDate><guid>http://www.cnblogs.com/al-zerone/archive/2008/02/22/1077345.html</guid><wfw:comment>http://www.cnblogs.com/al-zerone/comments/1077345.html</wfw:comment><comments>http://www.cnblogs.com/al-zerone/archive/2008/02/22/1077345.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/al-zerone/comments/commentRss/1077345.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/al-zerone/services/trackbacks/1077345.html</trackback:ping><description><![CDATA[<span style="font-family: 微软雅黑">●冒泡排序&nbsp; <br style="font-family: " />
<br style="font-family: " />
using System；&nbsp; <br style="font-family: " />
namespace BubbleSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public class BubbleSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public void Sort（int [] list）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int i,j,temp；&nbsp; <br style="font-family: " />
bool done=false；&nbsp; <br style="font-family: " />
j=1；&nbsp; <br style="font-family: " />
while（（j＜list.Length）&amp;&amp; （!done））&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
done=true；&nbsp; <br style="font-family: " />
for（i=0；i＜list.Length-j；i++）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
if（list＞list[i+1]）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
done=false；&nbsp; <br style="font-family: " />
temp=list；&nbsp; <br style="font-family: " />
list=list[i+1]；&nbsp; <br style="font-family: " />
list[i+1]=temp；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
j++；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
<br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
public class MainClass&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public static void Main（）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int[] iArrary=new int[]{1,5,13,6,10,55,99,2,87,12,34,75,33,47}；&nbsp; <br style="font-family: " />
BubbleSorter sh=new BubbleSorter（）；&nbsp; <br style="font-family: " />
sh.Sort（iArrary）；&nbsp; <br style="font-family: " />
for（int m=0；m＜iArrary.Length；m++）&nbsp; <br style="font-family: " />
Console.Write（"{0} ",iArrary[m]）；&nbsp; <br style="font-family: " />
Console.WriteLine（）；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
&nbsp; <br style="font-family: " />
<br style="font-family: " />
●选择排序&nbsp; <br style="font-family: " />
<br style="font-family: " />
using System；&nbsp; <br style="font-family: " />
<br style="font-family: " />
namespace SelectionSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public class SelectionSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
private int min；&nbsp; <br style="font-family: " />
public void Sort（int [] list）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
for（int i=0；i＜list.Length-1；i++）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
min=i；&nbsp; <br style="font-family: " />
for（int j=i+1；j＜list.Length；j++）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
if（list[j]＜list[min]）&nbsp; <br style="font-family: " />
min=j；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
int t=list[min]；&nbsp; <br style="font-family: " />
list[min]=list；&nbsp; <br style="font-family: " />
list=t；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
<br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
public class MainClass&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public static void Main（）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int[] iArrary=new int[]{1,5,3,6,10,55,9,2,87,12,34,75,33,47}；&nbsp; <br style="font-family: " />
SelectionSorter ss=new SelectionSorter（）；&nbsp; <br style="font-family: " />
ss.Sort（iArrary）；&nbsp; <br style="font-family: " />
for（int m=0；m＜iArrary.Length；m++）&nbsp; <br style="font-family: " />
Console.Write（"{0} ",iArrary[m]）；&nbsp; <br style="font-family: " />
Console.WriteLine（）；&nbsp; <br style="font-family: " />
<br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
&nbsp; <br style="font-family: " />
<br style="font-family: " />
●插入排序&nbsp; <br style="font-family: " />
<br style="font-family: " />
using System；&nbsp; <br style="font-family: " />
<br style="font-family: " />
namespace InsertionSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public class InsertionSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public void Sort（int [] list）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
for（int i=1；i＜list.Length；i++）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int t=list；&nbsp; <br style="font-family: " />
int j=i；&nbsp; <br style="font-family: " />
while（（j＞0）&amp;&amp;（list[j-1]＞t））&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
list[j]=list[j-1]；&nbsp; <br style="font-family: " />
--j；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
list[j]=t；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
<br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
public class MainClass&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public static void Main（）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int[] iArrary=new int[]{1,13,3,6,10,55,98,2,87,12,34,75,33,47}；&nbsp; <br style="font-family: " />
InsertionSorter ii=new InsertionSorter（）；&nbsp; <br style="font-family: " />
ii.Sort（iArrary）；&nbsp; <br style="font-family: " />
for（int m=0；m＜iArrary.Length；m++）&nbsp; <br style="font-family: " />
Console.Write（"{0}",iArrary[m]）；&nbsp; <br style="font-family: " />
Console.WriteLine（）；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
&nbsp; <br style="font-family: " />
<br style="font-family: " />
●希尔排序&nbsp; <br style="font-family: " />
<br style="font-family: " />
using System；&nbsp; <br style="font-family: " />
<br style="font-family: " />
namespace ShellSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public class ShellSorter&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public void Sort（int [] list）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int inc；&nbsp; <br style="font-family: " />
for（inc=1；inc＜=list.Length/9；inc=3*inc+1）；&nbsp; <br style="font-family: " />
for（；inc＞0；inc/=3）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
for（int i=inc+1；i＜=list.Length；i+=inc）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int t=list[i-1]；&nbsp; <br style="font-family: " />
int j=i；&nbsp; <br style="font-family: " />
while（（j＞inc）&amp;&amp;（list[j-inc-1]＞t））&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
list[j-1]=list[j-inc-1]；&nbsp; <br style="font-family: " />
j-=inc；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
list[j-1]=t；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
public class MainClass&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
public static void Main（）&nbsp; <br style="font-family: " />
{&nbsp; <br style="font-family: " />
int[] iArrary=new int[]{1,5,13,6,10,55,99,2,87,12,34,75,33,47}；&nbsp; <br style="font-family: " />
ShellSorter sh=new ShellSorter（）；&nbsp; <br style="font-family: " />
sh.Sort（iArrary ）；&nbsp; <br style="font-family: " />
for（int m=0；m＜iArrary.Length；m++）&nbsp; <br style="font-family: " />
Console.Write（"{0} ",iArrary[m]）；&nbsp; <br style="font-family: " />
Console.WriteLine（）；&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}&nbsp; <br style="font-family: " />
}</span>
<img src ="http://www.cnblogs.com/al-zerone/aggbug/1077345.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41937/" target="_blank">[新闻]Google拟在9月发布自有浏览器 或采用火狐内核</a>]]></description></item></channel></rss>