Step 0


Make a new directory for Lab 12 and download the files below.

Stern Warnings:


Continue on to Step 1 to get started.


linux1[5]% gcc -ansi -Wall -c lab12.c
lab12.c: In function 'main':
lab12.c:40: warning: unused variable 'head'
lab12.c:37: warning: unused variable 'i'
lab12.c:36: warning: unused variable 'id'
lab12.c: In function 'ReadFile':
lab12.c:119: warning: unused variable 'taName'
lab12.c:118: warning: unused variable 'tempNode'
lab12.c:117: warning: unused variable 'tempStudent'

linux1[6]% gcc -Wall -ansi -c linkedlist.c 

linux1[7]% gcc lab12.o linkedlist.o 

linux1[8]% a.out
Not enough command line arguments!
Use a.out 

linux1[9]% a.out data.txt
Welcome to the last lab of the semester! :)
                                                                          
linux1[10]%