diff --git a/shell法.cpp b/shell法.cpp new file mode 100644 index 0000000..1c22c13 --- /dev/null +++ b/shell法.cpp @@ -0,0 +1,20 @@ +void shell(int *a,int n) +{ + int i,j,k,x; + k=n/2; /*���ֵ*/ + while(k>=1) + { + for(i=k;i=0&&x