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