home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
SNPD9404.ZIP
/
RG_ISORT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-03
|
276b
|
16 lines
.I 4 1
.I 6 11
int i, j;
char *vtmp;
for (i = 1; i < n; ++i)
{
vtmp = v[i];
for ( j = i - 1; j >= 0 && strcmp(v[j], vtmp) > 0; --j )
v[j+1] = v[j];
v[j+1] = vtmp;
}
}
.D 7 11