diff --git "a/2224020152/\347\254\254\345\215\201\345\215\225\345\205\203/\345\256\236\347\216\260\345\206\222\346\263\241\346\216\222\345\272\217\347\256\227\346\263\225.cpp" "b/2224020152/\347\254\254\345\215\201\345\215\225\345\205\203/\345\256\236\347\216\260\345\206\222\346\263\241\346\216\222\345\272\217\347\256\227\346\263\225.cpp" new file mode 100644 index 0000000000000000000000000000000000000000..b2d30203033042fa98b4cca90c5d8328ec72180b --- /dev/null +++ "b/2224020152/\347\254\254\345\215\201\345\215\225\345\205\203/\345\256\236\347\216\260\345\206\222\346\263\241\346\216\222\345\272\217\347\256\227\346\263\225.cpp" @@ -0,0 +1,23 @@ +#include +int main ( ) +{ + + int a[]={3,2,6,4,8,9,1,0,3,5,7,1}; + int len=sizeof(a)/sizeof(int); + + int i=0,j; + for (; ia[j+1]) { + int temp = a[j]; + a[j] = a[j+1]; + a[j+1] = temp; + } + } + } + + for (i=0; i