[Unified-mailman] Computer Problem advice
    Jordan McRae 
    tao23 at MIT.EDU
       
    Mon Apr  5 22:11:04 EDT 2004
    
    
  
Hopefully by now you've realized most of this but theres a few things you 
should keep in mind when using JK's Test program.  Many of you seem to be 
creating a program that will insert a node into a pre-sorted doubly linked 
list.  However, what JK has given you is NOT  doubly linked list.  Two 
options you have to get around this are thus:
1.)  Change the Add_to_Front and Initialize procedures so that they work 
for and create a doubly linked list.  (This should be fairly simple...the 
hardest part should be what order the Head, Tail, prev, and next pointers 
should be set)
2.)  Make your own insert procedure dynamic enough to add nodes to a 
existing AND empty doubly linked lists.  This code will essentially replace 
add to front and you won't need the pre-sorted list that is given to you in 
JK's code.
Of course with any programming assignments, there are probably many other 
ways to do this...these are just a few simple suggestions.   Hope this 
helps....
-Jordan McRae
    
    
More information about the Unified-mailman
mailing list