The fact that there is already a quick sort implementation in the API does little good when you have to write your own, either for an assignment or for general knowlege. Although you can look at the code and see what is going on.
I am affraid Rusty is right.
So, I will have to ask two questions:
1. What is the purpose of this algoruthm you have to write. Is it a homework from the college? or something related to your work assigments?
2. What is actually your question? You actually did not ask anything in your post, you just told us what you want to do. Then, how can we help you?
[ April 09, 2006: Message edited by: Edwin Dalorzo ]