安装llvm obfuscator 在创建的build目录下执行: sudo make install 新建一个快速排序的例子quicksort.c: #define _CRT_SECURE_NO_WARNNINGS #include<stdio.h> #include<math.h> #include<stdlib.h> #include<string.h> #include<stdarg.h> #include<time.h> /*有的头文件是其它函数需要的*/ int compare(const void *, const void *); void showarry(int a[], int n); int main() { int a[N] = { 1, 5, 65, 34, 6, 7, 76, 45, 43, 45 }; showarry(a,N); printf("\n"); int b[N]; int * pi; memcpy(b, a, N * sizeof(int)); qsort(b, N, sizeof(int), compare); showarry(b, N); printf("\n"); pi = (int *)malloc(N * sizeof(int)); memcpy(pi, b, N * sizeof(int)); showarry(pi, N); free(pi); getchar(); return 0; } int compare(const void * p1, const void * p2) { const int * a1 = (int *)p1; const int * a2 = (int *)p2; if (*a1 < *a2) return 1