diff --git a/冒泡法.cpp b/冒泡法.cpp new file mode 100644 index 0000000..0550569 --- /dev/null +++ b/冒泡法.cpp @@ -0,0 +1,16 @@ +void bubble(int *a,int n) +{ + int i,j,temp; + for(i=0;ia[j]) + { + temp=a[i]; + a[i]=a[j]; + a[j]=temp; + } + } + } + }