1 #include2 using namespace std; 3 4 void swap(int &a,int &b) 5 { 6 if(a==b) 7 return; 8 a=a+b; 9 b=a-b;10 a=a-b;11 }12 13 int qsort(int *array,int low,int high)14 {15 int key=array[low];16 cout<<"key="< < = array[low])24 low++;25 swap(array[low],array[high]);26 }27 cout<<"low="< <
g++ -std=c++11编译