CJCoding With Joseph
15free / daySign inCreate account

Carleton University - SYSC 2006

Updating a1_data_structures.h

Assignment 2 - Spring 2025

The original a1_data_structures.h file was written for Assignment 1, where we used arrays to store routing information.

But in Assignment 2, we are now using linked lists, so we need to make some changes to our data structures so they work with the new linked list system.

Let’s walk through exactly what you need to update and why.


Why do we need changes?

In Assignment 1, each rtable_t stored all its routes in an array of destination nodes like this:

dest_node_t dest[NODE_MAX];  // Used in Assignment 1
Members only

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 25 more lessons in Carleton University - SYSC 2006.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel any time.