Bubble sort

Hi!
Can anyone help me please! I have to write an C++ programm that sort number like: last goes first, second last goes last, etc. Can anyone please write an function that completes this. Using just #include<iostream> and using namespace std;
Thanks.
no. do your homework yourself.
there is some pseudocode in wikipedia : http://en.wikipedia.org/wiki/Bubble_sort
that may be helpful.
Topic archived. No new replies allowed.