Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: array records were addressed by an index with known start and end. We we were using arrays, there were mostly nested “ for “ loops in the core of the functions. Working with linked list it is more efficient to use “while” loops. This is just to avoid the “break”. As the first and useful step we copy the linked list exactly the way it is into a new one linked by MPG forward and backward pointers, MPGfLink and MPGbLink. CarID *MPGfirst = First; CarID *MPGlast = Last; CarID *Temp, *tEmp, *teMp,*temP; do { Temp->MPGfL...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online