Course Solutions Uncategorized (Solved) : C Load Text File Inputs Max Heap Reading Line Line File Example Text File Name Input1txt Q29301271 . . . .

(Solved) : C Load Text File Inputs Max Heap Reading Line Line File Example Text File Name Input1txt Q29301271 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post