C++. How to load text file with inputs into MAX-HEAP by readingline by line from the file. For example the text file name isinput1.txt How to access these inputs into an array and load intoMax Heap?
sample Input1.txt is:
(line 1) 2
(line 2) 2
(line 3) 25 30
(line 4) 20 18
(line 5) 11 15
I want to only access lines 3-5 where the first numbers are theaddress and second is the value of the element. <address> and<value>. So to load into MAX HEAP do you load both theaddress or just the value. Please implement it by code c++. Will begiven thumbs up for correctly
PayPal Gateway not configured
PayPal Gateway not configured