代码大全

(singke) #1

Mtx[InsertPos-1]


for Boundary 1,Boundary<NUM;Boundary
{
InsertPos=Boundary;
TestVal=Mtx[InsetPos-1];
While(Insertpos 0&&Mtx[InsertPos] TestVal
{
SwapVal Mtx InsertPos]
Mtx InsertPos] Mtx InsertPos-1]
Mtx InsertPos-l] SwapVal;
InsertPos --;


TestVal Mix InserPos-1


for(Boundary-1;Boundary NUM;Boundary
{
InsertPos= Boundary;
TestVal=Mtx[InsertPos-1];
While(InsertPos )&&Mtx[InsertPos]<TestVal)
{
WwapVal Mtx InsertPos
Mtx[InsertPos] TestVal;
Mtx[InsertPos-1] SwaPVal;
InsertPos--;
TestVal Mtx[InsertPos-1];


InsertPos-1

C 1 .53 1.58 -3%
Ada 1.43 1.59 - 11
C
TestValPtr


for(Boundary 1;Boundary Num;Boundary
{
InsertPos Boundary;
TestValPtr & Mtx[InsertPos-1]


while InsertPos 0&&Mtx InsetPos *TestValPtr
Free download pdf