Why are you starting a new thread when you asked the same exact questions in a previous thread? We're trying to help, but you're making this hard.
Almost anyone can learn how to program. It might some more time and effort, but you certainly can do it. But you don't learn how to program by implementing quicksort, that is something fairly complicated to do after you already know the basics.
In programming, you need to break up your problem into smaller building blocks that you can then combine. Focus on each building block at a time. dhayden gave some examples (although prime number algorithms are a bit far away from sorting algorithms, both make you think about solving problems in steps). In the other thread, I gave an example of using std::vector, plus I went through the steps of one way to sort arrays (not quicksort).
Learn the basics, learn how to manipulate arrays/vectors, learn the easy, naive way of sorting an array, learn about how functions work, and then try to conquer quicksort.
Your other thread (don't double post, next time)
http://www.cplusplus.com/forum/beginner/235593/