;\rstep[3]=1;\rinti,Temp;\rintk,s,w;\rfor(inti=0;i<4;i++)\r(\rk=step[i];\rs=-k;\rfor(intj=k;j<Count;j++)EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\riTemp=pData[j];\rw=je3fstep@YZ?gh\rif(s==0)\r{\rs=-k;s++i\rpData[s]=iTemp;\r)\rwhile((iTemp<pData[w])&&(w>=O)&&\r(w<=Count))\r(\rpData[w+k]=pData[w];\rw=w-k;}\rpData[w+k]=iTemp;}\r)\r)\rvoidmain()\r(\rintdata[]={10,9,8,7,6,5,4,3,2,1,-10,-1};ShellSort(data,12);\rfor(inti=0;i<12;i++)\rcout<<data[i]<<"\rcout<<"\n";EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r)\rjj?:2kP.!lm?&n(& opqs==0?rst@u\rvw?J xyLM0HIz{?:|<}\r??@%\ro0102??@~a?1 ?D.L.SHELL?
\r?a“=>?TxyLM2?bHI\r~a~a?=>n?1.2b?`;<=>\r“ ¡¢£¤”?T¦%(&ABn?§%K¨.©ª.