sx insert

void insert(int A, int n)

{

for (int i=0; i<n; i++)

{

t=A[i+1];

j=i;

while(j>-1&&a[j]>t)

{

A[j+1]=a[j];

j=j-1;

}

t=a[j+1];

}

}

Bạn đang đọc truyện trên: truyentop.pro

Tags: