Duh
10-13-2002, 01:27 PM
Basically this program makes two linked list queues, and makes them a fake printer queue. A low priority queue, and a sorted high priority queue (by size ascending). The code is easy to figure out, but i keep getting seg faults in different spots, im very confused now.
heres the app code (the list code is given, but i know it all works correctly. functions are pretty self explanatory). the input data we need to use is posted after the code.
Thanks in advance for any help!!!
--------------------
EDIT!!!!
It no longer seg faults, but i get an infinite loop when calling 'delete [] file;'
without it it works fine, but thats a lot of wasted memory
heres the app code (the list code is given, but i know it all works correctly. functions are pretty self explanatory). the input data we need to use is posted after the code.
Thanks in advance for any help!!!
--------------------
EDIT!!!!
It no longer seg faults, but i get an infinite loop when calling 'delete [] file;'
without it it works fine, but thats a lot of wasted memory