diff --git "a/2224020152/\347\254\254\345\215\201\345\215\225\345\205\203/\345\256\236\347\216\260\345\277\253\351\200\237\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\277\253\351\200\237\346\216\222\345\272\217\347\256\227\346\263\225.cpp" new file mode 100644 index 0000000000000000000000000000000000000000..ce4596e64f043b3709fa0bdf9832c047881da434 --- /dev/null +++ "b/2224020152/\347\254\254\345\215\201\345\215\225\345\205\203/\345\256\236\347\216\260\345\277\253\351\200\237\346\216\222\345\272\217\347\256\227\346\263\225.cpp" @@ -0,0 +1,33 @@ +#include +#include +#include + +int partion(char *s,int start,int end) +{ + + int key = s[start]; + int temp; + while(1) + { + while(s[start] < key && (start < end) ) + { + + start++; + } + + while(s[end] > key && (end > start)) + { + + end--; + } + if(start >= end) + { + + break; + } + else + { + + temp = s[start]; + s[start] = s[end]; + s[end] = t \ No newline at end of file