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.