March 19th, 2003, 11:54 PM
Linked List issue
I am working on a project that simulates a network of printers, clients, and printer queues, and so i've decided to use linked lists to to a majority of the work.
the problem i am experiencing is that i have a Queue class which holds two linked lists containing pointers. the two linked lists contain pointers to a list of all jobs, and a list of all printers.
each client has a list of queues it knows about, so i have a linked list of clients each knowing a certain amount of queues
the issue i am having is when i add a queue to the client, the pointers inside the Queue's linked lists (the pointers to jobs and pointers to clients) dissappear. i've tracked it down to the setting of the Data in the node, but i have no idea how to fix this. any ideas?
thanks very much, and sorry for being possibly confusing