It's not just "more smoothly." How do you represent that picture 1 (cel 1?), is followed by picture 2, then picture 3, then back to picture 2, then back to picture 3, etc.? We can do it with a switch statement, as you found in HW9. But a circular linked list allows us to represent that sequence in the data (structure), rather than in the code (process or behavior). The point is key: We can do it on either side of the structure/behavior divide. A circular linked list is how we represent the picture sequence on the structure side. Isn't A basically any data structure OTHER THAN array or matrix? Same with D? Mark Guzdial |