sorting array

I have a project to do and what I need to do is pull in 500,000 numbers from a file and then sort them numerical. My thought was to do an array but some of them numbers are like 5,000,000 or bigger. my question is how would I sort them since the numbers are so big and I can not create an array that big.
Make an actual sort function, use an existing one, use the command line.

For the first 2 you will need an array but the array only has to be 500000 in size, then sort them.
Must you use an array? If not just use a std::deque.
Sounds like he's used JavaScript or something like that and wants to transplant that knowledge to C++ without bothering to learn the language.
Topic archived. No new replies allowed.