Simple Assembly Language problem

Write a C++ program which asks for 5 numbers to be entered by the user. The
program stores the numbers in an array. It will then call another function, sort(), which is passed a pointer to the array. The sort() function will sort the numbers into an ordered list where the smallest is at the top and biggest at the bottom. The sort() function is to be written in 80386 assembly language. The main function will then display the sorted list on the screen.
Write the program in C++, compile to assembly, read compiled assembly. Done.
How do you sort out the numbers into an ordered list even in C++? (Sorry im quite new to this)
Topic archived. No new replies allowed.