diff --git a/冒泡排序.cpp b/冒泡排序.cpp new file mode 100644 index 0000000..40b524f --- /dev/null +++ b/冒泡排序.cpp @@ -0,0 +1,24 @@ +#include +int main() +{ + int a[100000]; + int i,j,n,t; + scanf("%d",&n);//�������ָ��� + for(i=0;ia[j+1]) + { + t=a[j]; + a[j]=a[j+1]; + a[j+1]=t; + } + } + } + for(i=0;i