Lab06, CISC181, Fall 2005

Practice with Linked Lists

This lab is designed to give you practice working with linked lists.

Look at the source file: lists.cc (found in the lab06 directory on the course web site.)

In this file, the pointer variable mylist (in the main function) points to the first element in the linked list. A function make_a_list builds the linked list. Three other functions: print_list, add_at_front and add_at_back, are not complete. The calls to the other functions are already given in the main program (some are commented out). Your assignment is to complete these functions.

Understanding each of the List functions

What you have to do

Finishing and Submitting

  1. Upload your three .txt files and your three .cc files to WebCT and submit. Print your three scripts files for your TA.

Grading:

100 pts: 30 pts each for the three files (divided among style and correctness as the TA sees fit), and 10 points for overall correct submission.