Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void inSort(int* p,int l)
- {
- int t;
- int q;
- for(int i = 1;i<l;++i)
- {
- t = p[i];
- for(q = i-1;p[q]>t && q>=0;--q)
- p[q+1] = p[q];
- p[q+1] = t;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement