copy from 1st array to second and sort

I have 1st array which contains a unknown number of unsorted integers in txt file.
I have to:
1. Find 50 largest elements.
2. Copy these elements to the NEW 2nd array.
3. Sort 2nd array using heap sort and display.
Important (!) I am not allowed to use third party libraries (including C++ STL, Boost etc.)

How can I implement that? I have no idea, please help.
@nlstmn
3. Sort 2nd array using heap sort and display.

Did you implement this part yet?
Kotori,
nope
Topic archived. No new replies allowed.