CS 241 Data Organization using C
Lab 9: Fun with Lists!


November 1, 2018

The purpose of lab today is to get you started on Homework 8.

1 Getting Started

We’re going to get started writing code to help with homework 8 today. If you’ve already written code for this, start there. Otherwise, create a new c file called linkedlist.c.

2 Make files

You’ll need to write a make file in order to make compiling this homework assignment much easier. See these slides to learn more about how to do this https://www.cs.unm.edu/~vasek/cs241/slides/lec3.pdf.

For full points on this lab, you should have one message to compile your code and another to compile the testing code for homework 8. Your executable files should be named something other than a.out. Note that you will only be able to compile something with a main method AND you won't be able to include something with a main method, so only one of these make commands will work at any given time.

3 To do during lab

Points will be allocated as follows

1
Program uses the header file.
1
Make file compiles the program and testing code.
1
Functions written in class included in linkedlist.c.

4 Turning in your program

It’s ok not to finish this assignment – get through as much as you can.

Zip up your linkedlist.c file along with your Makefile into a zip file entitled yourCSUsername.zip. Then drop the zip file into the dropbox under the lab-09 folder..