bigk376
10-24-2003, 02:45 AM
Hi,
For class I have to right a console application in visual c/c++ 6.0 that reads a text file stores the text file as an array of integers. Then the program has to perform a bottom-up heap construction on the array. I’ve figured out the bottom-up heap construction and the down heap bubbling. What I haven’t been able to do is figure out how to read this(http://www.utdallas.edu/~besp/CS3345/keys.txt (keys.txt)) txt file into an array of integers, none of the courses I’ve taken so far have covered this, and none of the books I have really show any insight on how to do this. If anyone could show me how to do this or give a hint... I’d really appreciate it.
Thanks,
bigk
For class I have to right a console application in visual c/c++ 6.0 that reads a text file stores the text file as an array of integers. Then the program has to perform a bottom-up heap construction on the array. I’ve figured out the bottom-up heap construction and the down heap bubbling. What I haven’t been able to do is figure out how to read this(http://www.utdallas.edu/~besp/CS3345/keys.txt (keys.txt)) txt file into an array of integers, none of the courses I’ve taken so far have covered this, and none of the books I have really show any insight on how to do this. If anyone could show me how to do this or give a hint... I’d really appreciate it.
Thanks,
bigk