Guest User

Untitled

a guest
Oct 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. template<typename IT,typename CMP>
  2. void SM_sort(IT first,IT last,CMP cmp){ // 幫他寫了一個sort做測試
  3. if(last-first<=1)return;
  4. IT mid=kth(first,last,(last-first)/2,cmp);
  5. SM_sort(first,mid,cmp);
  6. SM_sort(mid+1,last,cmp);
  7. }
Add Comment
Please, Sign In to add comment