Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- using namespace std;
- int cmp(const void* a,const void* b)
- {
- if(*reinterpret_cast<const int*>(a)>*reinterpret_cast<const int*>(b))
- return 1;
- if(*reinterpret_cast<const int*>(a)<*reinterpret_cast<const int*>(b))
- return -1;
- return 0;
- }
- void cQSort(int* a,int l)
- {
- qsort(a,l,sizeof(int),cmp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement